자바칩

[Dart] Debug, Profile, Release 모드별 실행 명령어 본문

Study/Command

[Dart] Debug, Profile, Release 모드별 실행 명령어

아기제이 2025. 9. 24. 14:14
728x90

Debug 모드

  • flutter run (기본값)
  • kDebugMode == true
  • Hot reload 가능
  • 개발용, 최적화 안 됨

 

Profile 모드

  • flutter run --profile -d chrome
  • kProfileMode == true
  • 성능 측정용 (일부 디버깅 가능, 최적화 적용 일부 됨)

 

Release 모드

  • flutter run --release -d chrome
  • flutter build web --release
  • kReleaseMode == true
  • 최적화 최대로 적용, 로그/디버그 코드 제거됨