Repro:
- Open the example directory (https://github.com/dart-lang/webdev/tree/main/example) in vscode.
- Set a breakpoint in main.dart on line 13.
|
print('Initial Print :)'); |
- Click the debug link vscode inserts above the main method.
You should see the app build and start running, chrome pops up and there will be prints appearing in the vscode debug console.
Initial Print :)
Counter is now: 1
Counter is now: 2
Counter is now: 3
Counter is now: 4
...
- Now add a breakpoint on line 23.
|
print('Counter is now: ${++count}'); |
You should see execution will pause.
- Click the "Restart" button in the vscode debugging UI to hot restart the app.
You should see that the breakpoint on line 13 is skipped again but the breakpoint on line 23 still works.
Repro:
webdev/example/web/main.dart
Line 13 in 5b7299f
You should see the app build and start running, chrome pops up and there will be prints appearing in the vscode debug console.
webdev/example/web/main.dart
Line 23 in 5b7299f
You should see execution will pause.
You should see that the breakpoint on line 13 is skipped again but the breakpoint on line 23 still works.