How to debug a Dart command-line application using async? (breakpoints do not work)

The debugger in IntelliJ or Dart Editor does not stop at a breakpoint for this code:

main() async { var x = 1; bool stop = true; // breakpoint here } 

... but for this code:

 main() { var x = 1; bool stop = true; // breakpoint here } 

Dart SDK 1.8.3 and latest stable versions on both IDEs.

+5
source share
1 answer

This is a known issue that has been fixed in the dev channel and will be released in stable channel 1.9. See Breakpoint set inside an asynchronous function does not start .

+4
source

Source: https://habr.com/ru/post/1209523/


All Articles