BlueDev5 · GitHub

Describe the bug
If I have code that looks like this:

void main() {
    print('print');
}

with a breakpoint set on line 2. Now if I start a debugging session. the output does show print, but the breakpoint is not hit.

To Reproduce
Steps to reproduce the behavior:

  1. open vscode, and ensure dart extension version 3.48 is installed.
  2. Create a new file with any name and .dart at the end.
  3. Type the code above with a breakpoint on the print statement.
  4. Start a debugging session.
  5. Notice the print statement runs but the breakpoint is not hit.

Expected behavior
The breakpoint should be hit.

Screenshots
something dart - typescript - Visual Studio Code 06-09-2022 15_34_19

Please complete the following information:

  • Operating System and version: windows 11 (up to date)
  • VS Code version: 1.71.0
  • Dart extension version: 3.48.1
  • Dart/Flutter SDK version:2.18.0 (stable)

Read the original on github.com ↗