Breakpoints may not work if opted-in to SDK DAP experiment on Windows if drive letter casing mismatches
See original GitHub issueDescribe 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:
- open vscode, and ensure dart extension version 3.48 is installed.
- Create a new file with any name and .dart at the end.
- Type the code above with a breakpoint on the print statement.
- Start a debugging session.
- Notice the print statement runs but the breakpoint is not hit.
Expected behavior The breakpoint should be hit.
Screenshots
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:
- Created a year ago
- Comments:7 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t seem to be able to repro this:
Could you confirm how you’re starting the debug session, and also capture a log:
Thanks!
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).