Skip to content

Case where the breakpoint resolution algorithm dosen't correctly find the first debuggable location on a lineΒ #60274

Open
@derekxu16

Description

@derekxu16

In the example program below, putting a breakpoint on line 2, starting a debug session, and then hitting "step over" twice results in the debugger being paused at the = at 3:12, and then hitting "step over" again results in the debugger being paused at 3:17. If a breakpoint is put on line 3 instead of line 2, then the debugger pauses at 3:22 when a debug session is started.

void main() {
  final a1 = ['a', 'b', 'c'];                // line 2
  final a2 = a1.map((c) => c.toLowerCase()); // line 3
  print(a2);
}

related to: Dart-Code/Dart-Code#5430

Metadata

Metadata

Assignees

Labels

area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.triagedIssue has been triaged by sub teamvm-debuggervm-serviceThe VM Service Protocol, both the specification and its implementation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions