Skip to content

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

@BlueDev5

Description

@BlueDev5

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    in debuggingRelates to the debug adapter or process of running debug sessionsis bugon windows

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions