Jonah Williams
Jonah Williams
Thank you @aam . I'll see if I can adjust the pragma a bit. I suspect with asserts enabled we're in an unexpected set of configurations and will need to...
This now almost works on ToT. Invocation: ` flutter run --profile --extra-gen-snapshot-options=--enable-asserts --extra-front-end-options=--enable-asserts --dart-flags=--enable-asserts` Shipping this requires pssing the --dart-flags=--enable-asserts at runtime IIRC
Actually a few more args: `flutter run --profile --extra-gen-snapshot-options=--enable-asserts --extra-front-end-options=--enable-asserts --dart-flags=--enable-asserts --dart-define=dart.vm.profile=false --dart-define=dart.vm.product=false`
This should work as of 5bc3de9d75
@a-siva I'm getting asserts messages at ToT. What is missing? ``` void main() { assert(false, "Hit an assert!"); } ``` Gives me ``` [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: 'package:hello_world/main.dart': Failed assertion: line...
This should work on ToT. Add the following line to the application Info.plist: ``` FLTEnableDartAsserts ``` and then build/run with the following arguments: ``` flutter run --profile --extra-gen-snapshot-options=--enable-asserts --extra-front-end-options=--enable-asserts --dart-flags=--enable-asserts...
unassigning as I think all my work is done here.
You need to be on a flutter version after https://github.com/flutter/flutter/commit/817630ccf18b014b7a556c7dca28489315503c5b has landed
The stack trace might be getting lost in the flutter tool parsing output. You can try running `adb logcat` directly to see if something shows up in the logs there.