question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Breakpoints may not work if opted-in to SDK DAP experiment on Windows if drive letter casing mismatches

See original GitHub issue

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)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
DanTupcommented, Sep 6, 2022

I don’t seem to be able to repro this:

Screenshot 2022-09-06 at 13 21 32

Could you confirm how you’re starting the debug session, and also capture a log:

  • Run the Dart: Capture Debugging Logs command
  • Run the app
  • Click Cancel on the logging notification to stop logging and open the log
  • Remove anything sensitive from the log
  • Attach the log here (or in a gist)

Thanks!

0reactions
DanTupcommented, Sep 7, 2022

Great, thanks for confirming. I’ll re-enable the new DAPs for Windows only once #4149 is fixed (and the SDK being used contains the fix if the fix ends up being in there).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugger Not Stopping at Breakpoints in VS Code for Python
Every time I try to use the debugger, it just skips over any breakpoints that I have set and runs the program like...
Read more >
[vscode-go] docs/dlv-dap: add features and images
You can inspect variables and stacks, setting breakpoints, and do other debugging activities using [VS Code's Debugging UI](https://code.visualstudio.com/docs/ ...
Read more >
sbt Reference Manual — Combined Pages
Displays detailed help for the specified command. If no command is provided, displays brief descriptions of all commands. reload, Reloads the build definition...
Read more >
PyCharm 2020.1 not stopping on breakpoints anymore.
PyCharm Professional 2020.1 is not stopping on breakpoints for me anymore, when I test my project with pytest and run tests in debug...
Read more >
PyDev Releases
A better error message is shown when using an unsupported Python version. Debugging. Updated Linux DLLs to fix PyInt_FromLong not found in Python...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found