dart-lang / webdev

A CLI for Dart web development.
https://pub.dev/packages/webdev
212 stars 75 forks source link

Support some equivalent of --start-paused for webdev daemon #830

Open DanTup opened 5 years ago

DanTup commented 5 years ago

Without this there are races setting breakpoints in the IDE for startup code. In Flutter this is done by not calling runMain until we send the first resume.

jakemac53 commented 4 years ago

@grouma it sounds like vscode still doesn't enable the debugger because of this, should we be prioritizing this higher?

grouma commented 4 years ago

I can likely tackle this next week.

DanTup commented 4 years ago

Friendly ping! I just re-discovered this while working on some Dart-Code integration tests :-)

(though FWIW, I don't think VS Code is blocking anything on this now - the breakpoints just don't work in startup code.. If I add breakpoints to code that runs later, I can launch and hit them fine from VS Code - albeit it with some other issues I'm fixing).