Skip to content

test: SourceLink F11 step-into verification (#214) - #313

Merged
Chris-Wolfgang merged 1 commit into
vNextfrom
thorough/214-sourcelink-stepinto
Jul 23, 2026
Merged

test: SourceLink F11 step-into verification (#214)#313
Chris-Wolfgang merged 1 commit into
vNextfrom
thorough/214-sourcelink-stepinto

Conversation

@Chris-Wolfgang

Copy link
Copy Markdown
Owner

Summary

Proves the debugger half of SourceLink end-to-end (issue #214). sourcelink.yaml already verifies every PDB document resolves to real GitHub content via dotnet sourcelink test; this drives an actual debugger step-into and asserts it lands in the library's real source — the exact thing a consumer pressing F11 relies on — not a decompiled placeholder.

  • .github/workflows/sourcelink-stepinto.yaml (scheduled weekly + workflow_dispatch, not a PR gate) builds a fixture consumer, installs netcoredbg, and runs the driver.
  • .github/sourcelink/verify_stepinto.py drives netcoredbg over its MI interface: break in the consumer → -exec-step → assert the resulting frame is the library's SourceLink-mapped source with symbols loaded. Non-zero exit if it lands with no source (decompiled).
  • .github/sourcelink/consumer/ — a minimal fixture: ProjectReference built ContinuousIntegrationBuild=true (byte-identical SourceLink PDB to the shipped package — netcoredbg can't pair a package assembly with its .snupkg PDB), Debug/Optimize=false so the target isn't inlined, and empty Directory.Build.props/.targets to isolate it from the repo analyzers. Step-into target: new Report(42).

Validation

Ran the whole flow locally (netcoredbg 3.1.2-1054, net10.0):

RESOLVED_FILE=Report.cs
RESOLVED_FULLNAME=/_/src/Wolfgang.Etl.Abstractions/Report.cs
RESULT=PASS

i.e. the debugger stepped into Report's constructor at the deterministic SourceLink path with symbols-loaded=1 — real source, not decompiled.

Acceptance criteria (#214)

  • A scheduled workflow publishes a fixture consumer, steps into the library, and asserts it resolved real source (not a decompiled placeholder)
  • If F11 fails (no source), the check fails with a diagnostic (RESULT=FAIL reason=…)
  • [~] Covers embedded-PDB path via the deterministic SourceLink PDB; the packed .snupkg symbol-server path is covered by sourcelink.yaml (netcoredbg can't script package symbols — documented in the fixture README)

Scheduled/manual only, so it doesn't run on this PR; validated locally as above.

Closes #214

Proves the debugger half of SourceLink end-to-end: sourcelink.yaml already checks
that every PDB document resolves to real GitHub content; this drives an actual
debugger step-into and asserts it lands in the library's real source, not a
decompiled placeholder.

.github/workflows/sourcelink-stepinto.yaml (scheduled weekly + workflow_dispatch,
not a PR gate) builds a fixture consumer, installs netcoredbg, and runs
verify_stepinto.py — which drives netcoredbg over its MI interface to break in the
consumer, step into Report's constructor, and assert the frame is the library's
SourceLink-mapped source (/_/src/Wolfgang.Etl.Abstractions/Report.cs) with symbols
loaded.

Uses a ProjectReference built with ContinuousIntegrationBuild=true (byte-identical
SourceLink PDB to the shipped package; netcoredbg can't pair a package assembly
with its .snupkg PDB) and Debug/Optimize=false so the target isn't inlined. An
empty Directory.Build.props/.targets isolates the fixture from repo analyzers.

Validated locally end to end (netcoredbg 3.1.2-1054, net10.0):
step-into resolved /_/src/Wolfgang.Etl.Abstractions/Report.cs, symbols-loaded=1,
RESULT=PASS.

Closes #214

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 23, 2026 01:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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.

2 participants