Skip to content

Preserve and display method body sequence points#514

Open
ImElio wants to merge 1 commit into
dnSpyEx:masterfrom
ImElio:fix/preserve-method-body-sequence-points
Open

Preserve and display method body sequence points#514
ImElio wants to merge 1 commit into
dnSpyEx:masterfrom
ImElio:fix/preserve-method-body-sequence-points

Conversation

@ImElio

@ImElio ImElio commented Jun 25, 2026

Copy link
Copy Markdown

Link to issue(s) this pull request covers:

Problem

The CIL Method Body editor already loads PDB sequence point information, but this information was not visible in the instructions grid and could be lost during some edit/import flows.

This makes it harder to inspect how IL instructions map back to source lines when a matching PDB is available.

Solution

Preserve method body PDB information when copying CIL body options and preserve instruction sequence points when importing instructions.

This also adds a read-only "Sequence Point" column to the Method Body editor. The column shows the source file plus line/column range, and the tooltip shows the full source path when available. Hidden sequence points are displayed using the existing localized resource.

Tested with:

  • dnSpy.AsmEditor net48 build
  • dnSpy.AsmEditor net10.0-windows build
  • Manual check using Newtonsoft.Json.dll with matching PDB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant