Skip to content

[clr-ios] Debugger shows wrong source file and variables when stopped in interpreted code #125975

@kotlarmilos

Description

@kotlarmilos

Description

When the debugger stops in interpreted code on device, vscode opens the wrong source file and displays variables from a different method.

Impact

For example, Debugger.Break() in OnCounterClicked (MainPage.xaml.cs) causes vscode to open MainPage.xaml.xsg.cs. Stepping and Continue work correctly after stopping, and variable values can be read from the intended scope.

Root cause

The IL offset to source mapping seems to be broken on device.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions