Skip to content

Add netcoredbg debug adapter, dotnet locator, and runnables - #95

Open
Gambl3r08 wants to merge 1 commit into
zed-extensions:mainfrom
Gambl3r08:add-netcoredbg-debugger
Open

Add netcoredbg debug adapter, dotnet locator, and runnables#95
Gambl3r08 wants to merge 1 commit into
zed-extensions:mainfrom
Gambl3r08:add-netcoredbg-debugger

Conversation

@Gambl3r08

Copy link
Copy Markdown

Adds debugging support (#12) via the netcoredbg debug adapter, plus a dotnet
debug locator and test/main runnables.

What this does

  • netcoredbg adapter: downloaded from GitHub releases on first use, with a
    JSON schema for launch and attach, and a debugger.scm query for inline
    values while paused.
  • dotnet locator: turns a dotnet run task into build-then-debug. It
    finds the assembly with dotnet msbuild -getProperty:TargetPath — no shell
    scripts and no filesystem probing, which I believe solves the csproj
    discovery problem described in Add zed-netcoredbg to csharp extension, add runnables #43.
  • Runnables: gutter run buttons for [Fact]/[Theory]/[Test]/
    [TestMethod]/[TestCase] methods, test classes (including xUnit classes,
    detected by their contents since xUnit has no class attribute), and Main.

Deliberate limitations

  • The locator does not handle dotnet test: the test assembly is a VSTest-driven
    library, and launching it directly exits without running anything (verified).
    Instead there is a "wait for debugger" task using VSTEST_HOST_DEBUG=1, and
    the user attaches to the printed pid — same conclusion Add zed-netcoredbg to csharp extension, add runnables #43 reached.
  • MSBuild failures are reported from stdout as well as stderr, since MSBuild
    writes errors like MSB1003 to stdout with an empty stderr.

Relationship to #43: overlapping goal; this implementation needs no shell
scripting for project discovery. Happy to coordinate or merge efforts.

@cla-bot cla-bot Bot added the cla-signed label Jul 30, 2026
@Gambl3r08 Gambl3r08 changed the title Add netcoredbg debug aAdd netcoredbg debug adapter, dotnet locator, and runnablesdapter support Add netcoredbg debug adapter, dotnet locator, and runnables Jul 30, 2026
@IldySilva

Copy link
Copy Markdown

this is a must ,

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants