microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
160.94k stars 28.23k forks source link

Breakpoint Line Number incorrect/changes #220550

Closed theSonGoku1991 closed 4 days ago

theSonGoku1991 commented 2 weeks ago

Hello,

when using Visual Studio Code and adding breakpoints, most of the time I notice that the line I set the breakpoint for does not match the label on the right to the breakpoint in the debugger.

I am using Flutter and Dart. My current VS Code version is 1.91.0 (user setup), but I have had that issue for month, it just did not annoy me enough to create a issue for it yet (and, I am not yet skilled enough with github and all of that stuff). The platform I am developing for are mobile apps for android and ios. I am coding on Windows 10.

It is even the case that I have to click into the line for the breakpoint several times until the label in the debugger shows the actually correct break point line (for example, when the breakpoint is in line 260, at happens that I press and get 272, then 270, then 240 etc. until I get 260 after like 4-5 clicks in the very same line).

In this video you see

I would also like to add that it happens to me occasionally that the debug bar with stop, continue etc. does not show (not even in the main.dart file).

Its no breaking bug but annoying.

Regards Thomas

gjsjohnmurray commented 2 weeks ago

/needsMoreInfo including platform, version and coding language.

VSCodeTriageBot commented 2 weeks ago

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.

Happy Coding!

theSonGoku1991 commented 2 weeks ago

I am using Flutter and Dart. My current VS Code version is 1.91.0 (user setup), but I have had that issue for month, it just did not annoy me enough to create a issue for it yet (and, I am not yet skilled enough with github and all of that stuff). The platform I am developing for are mobile apps for android and ios. I am coding on Windows 10.

theSonGoku1991 commented 2 weeks ago

The bug just happend to me again, so I recorded a short loom video to show you: https://www.loom.com/share/1cc81370bc0348b58cdcd72f9cfd9de0

In this video you see

theSonGoku1991 commented 1 week ago

I would also like to add that it happens to me occasionally that the debug bar with stop, continue etc. does not show (not even in the main.dart file).

roblourens commented 4 days ago

This is up to the Flutter/Dart debug extension. Please file an issue on their repo. A minimal sample of code that reproduces the issue would probably help them.