Commit 95b34d7a authored by sjindel-google's avatar sjindel-google Committed by Jonah Williams

Pass --verify-entry-points in debug mode. (#27032)

parent 8cb2695a
......@@ -431,8 +431,10 @@ class AndroidDevice extends Device {
if (debuggingOptions.traceSystrace)
cmd.addAll(<String>['--ez', 'trace-systrace', 'true']);
if (debuggingOptions.debuggingEnabled) {
if (debuggingOptions.buildInfo.isDebug)
if (debuggingOptions.buildInfo.isDebug) {
cmd.addAll(<String>['--ez', 'enable-checked-mode', 'true']);
cmd.addAll(<String>['--ez', 'verify-entry-points', 'true']);
}
if (debuggingOptions.startPaused)
cmd.addAll(<String>['--ez', 'start-paused', 'true']);
if (debuggingOptions.useTestFonts)
......
......@@ -279,8 +279,10 @@ class IOSDevice extends Device {
if (debuggingOptions.useTestFonts)
launchArguments.add('--use-test-fonts');
if (debuggingOptions.debuggingEnabled)
if (debuggingOptions.debuggingEnabled) {
launchArguments.add('--enable-checked-mode');
launchArguments.add('--verify-entry-points');
}
if (debuggingOptions.enableSoftwareRendering)
launchArguments.add('--enable-software-rendering');
......
......@@ -320,7 +320,10 @@ class IOSSimulator extends Device {
if (debuggingOptions.debuggingEnabled) {
if (debuggingOptions.buildInfo.isDebug)
args.add('--enable-checked-mode');
args.addAll(<String>[
'--enable-checked-mode',
'--verify-entry-points'
]);
if (debuggingOptions.startPaused)
args.add('--start-paused');
if (debuggingOptions.skiaDeterministicRendering)
......
......@@ -926,8 +926,9 @@ class _FlutterPlatform extends PlatformPlugin {
command.add('--ipv6');
}
command.add('--enable-checked-mode');
command.addAll(<String>[
'--enable-checked-mode',
'--verify-entry-points',
'--enable-software-rendering',
'--skia-deterministic-rendering',
'--enable-dart-profiling',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment