[P3] Interpreter debugger: add VS Code integration, packaging, and end-to-end acceptance
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- csharp, typescript, vscode
- Domain
- build-system, devtools, documentation, testing-qa
Research direction
Start by reviewing parent issue #1400 and the prerequisite issues #1401 through #1404 to understand the existing DAP work before tackling this release-wide integration. Verify the VS Code and client-agnostic launch flows, packaging checks, end-to-end scenario, platform smoke tests, documentation, and performance bounds; done means a compatible released interpreter debugger passes the stated acceptance criteria.
Written by the indexing model from the issue text.
Description
Parent epic: #1400. Depends on #1401, #1402, #1403, and #1404.
Goal
Ship and verify the interpreter DAP as a usable product: VS Code debug type/configuration/commands, client-agnostic launch documentation, packaging, and end-to-end acceptance across the complete debugger feature set.
Status — automated acceptance refreshed 2026-10-26
Repository implementation and the automated editor/package acceptance are complete to the evidence below. Keep this issue open: visual acceptance in both editor profiles and the first public NuGet publication are not complete.
The old statement that d944f489303925b78598ba5ea16259ab59aa3d0c exists only locally is obsolete: it is integrated into main, and historical CI run 37869060276 passed the Windows/Linux checks and macOS adapter smoke. The current audit is in PR #2999.
Final PR CI passed: CI 40287177949 and Desktop GUI 40287177788 succeeded for source 1e436f1ba32dc8ef2c43963c7afd4a7d8d15e453 (29 successful checks, two expected skips). PR #2999 merged as 42e1c2518595273b356902e5431585c8d1473e95. The frozen release source is an ancestor of that merge and its complete tracked tree is identical. Visual acceptance and public NuGet publication remain open.
Work
- Contribute a dedicated VS Code debug type and configuration schema for interpreted SharpTS, clearly distinct from compiled
coreclrdebugging. - Add launch configuration snippets and a “Debug Current File in Interpreter” command that saves the exact document, preserves project/config/reference context, and starts the packaged adapter.
- Resolve adapter executable discovery/version compatibility for development, installed extension, and separately installed tool scenarios with actionable errors.
- Map console choice, cwd, args, environment, diagnostics, stop-on-entry, Just My Code/stdlib policy, and exception filters into the DAP launch contract.
- Ensure temporary state/logs have bounded lifecycle and no source/build artifacts accumulate unexpectedly.
- Add client-agnostic
sharpts-dapsetup and example configurations for at least one non-VS-Code DAP client or the protocol harness. - Document compiled-vs-interpreted debugger selection, capabilities, limitations, troubleshooting, security/evaluation policy, and worker/async semantics.
- Add release/package checks so the extension/tool cannot advertise the feature without shipping a compatible adapter.
End-to-end verification
- Automated adapter/extension integration launches a real multi-file interpreted program and exercises initialize, breakpoints, configurationDone, continue, all step operations, stackTrace, scopes, variables, evaluate, exception filters, output, termination, and disconnect. The frozen candidate passed ten development-extension sessions and ten installed-VSIX sessions through the real extension descriptor.
- The scenario includes a function, class method, loop, conditional, try/catch/finally, closure, import, async function after
await, generator afteryield, timer/promise callback, and worker if supported by #1404. The editor API/DAP coverage includes worker stepping, async/generator resumption, and caught/uncaught/unhandled exception flows. - Breakpoints bind in entry/imported source, brace/comment lines move predictably, and source shown by the client matches the saved file. Automated source/breakpoint assertions pass; visual glyph and source-panel checks remain in the manual item below.
- Dirty-file behavior is explicit and tested; stale/changed source cannot silently bind to incorrect locations. Command save/project/reference forwarding and changed-source rejection/relaunch pass in both editor profiles.
- Manual VS Code checklist validates UI behavior: verified breakpoints, call stack, scope grouping, watch/hover/repl evaluation, exception presentation, async stepping, restart, stop, and closing the client while paused. Pending in both Extension Development Host and clean installed-VSIX profiles. API assertions and actual DAP traffic do not establish rendered UI presentation.
- At least one non-VS-Code DAP client or raw protocol harness completes the documented launch and breakpoint flow. The exact installed 1.0.13 tool shim passed initialize/launch/import/breakpoint/stackTrace/evaluate/continue/output/exited/terminated/disconnect, including natural disconnect with stdin open.
- Windows, Linux, and macOS packaging/launch smoke tests run where the product supports those platforms. Final-head CI passed the Windows/Linux editor and package gates, macOS DAP smoke, and the Desktop GUI managed/native matrix.
- Extension compile/package, adapter tool pack/install, full unit/integration, interpreter conformance, Test262, and TypeScript conformance validation is green. Configured final-head CI gates passed, including both full core builds and all twelve standalone shards. Local integrated verification passed 405 tests with IL verification. The relevant Test262 comparison against exact base 640fc6cb1 produced seven new passes and no passing-case regressions across 28 executions; independent existing parity failures remain tracked, and no conformance baseline was loosened.
- Record debug-on and debug-off startup time, stepping latency, memory, and package-size impact against documented acceptance bounds. On the exact 1e/1.0.13 candidate, 21 fresh processes per mode on the same representative multi-file fixture measured median process-start-to-first-output of 1,615.368 ms debug off / 1,722.908 ms debug on (+107.541 ms). Median observed OS peak process working sets were 122.645 / 128.945 MiB (+6.301 MiB). These are observations with documented sampling limitations, not invented startup/memory limits. Twenty-one continue and variable-expansion samples had medians 0.8237 / 0.2847 ms, below the existing 50/100 ms limits. Package growth is 149,497 bytes, below 5 MiB. Raw samples, fixture/probe/payload hashes, method and limitations are retained in
artifacts/p3/release-1e436f1ba/performance/{result.json,README.md,run.log}. Historical debug-disabled dispatch/allocation and handle-lifetime evidence remains separate and documented.
Frozen release candidate and evidence
- Intended package: SharpTS.DebugAdapter 1.0.13, from clean source
1e436f1ba32dc8ef2c43963c7afd4a7d8d15e453. Both payload assemblies report1.0.13+1e436f1ba32dc8ef2c43963c7afd4a7d8d15e453; local exact-version tool installation, installed payload hash matching, and protocol smoke passed. - Package: 8,546,240 bytes, SHA-256
66ea6379c59887fdac68a4951b62fea23aefac2090e6deb470060eb757e380fe. The matching CLI package is 8,396,743 bytes, giving the verified 149,497-byte compressed growth. - Installed VSIX: 0.2.0, SHA-256
e1203e41cc1bbe8ab4f7f81f6b62fdab6837376a665826bc3c82c45796091783. - Exact payload hashes:
SharpTS.dll—1d63728dd9dd1cc462d1a575cb6cc7b388feab48f5aa128024085637380db259;SharpTS.DebugAdapter.dll—3f22300f026835f7c72ee494aed978d8cf45561315c3a8711236e5c54e19baed. - Environment: Windows x64, VS Code 1.141.0, .NET SDK 10.0.402. Both editor profiles use the candidate payloads and passed ten real API/DAP sessions each. No harness-provided adapter factory or adapter spawning replaced the shipping extension's integration.
- Manifest:
artifacts/p3/release-1e436f1ba/candidate-manifest.json. Raw installed-tool result:package-smoke/run-4fb50545375c41c4bfa40931ee0c0e64/result.jsonunder that release directory. Editor results:editor/run-9K6Mce/development/result.jsonandeditor-vsix/run-btqv2x/vsix/result.json. Latency evidence:latency/latency.trx. - The full integrated Release solution build passed with 0 warnings / 0 errors; 405 combined tests passed with IL verification, and quality checks reported zero errors. These local results are separate from the pending final-head CI confirmation above.
Remaining release actions
- Final PR #2999 CI passed and the PR merged as
42e1c2518595273b356902e5431585c8d1473e95; ancestry and complete tree equality to the frozen 1.0.13 candidate source were verified. - Complete and record the full visual checklist in both development and clean installed-VSIX profiles. The request for a human-active Windows session and workspace trust remains pending; neither profile's visual checklist has been marked complete.
- Onboard the public
SharpTS.DebugAdapterNuGet ID by uploading the intended first-release package. NuGet has no separate ID-reservation operation. The signed-in release-owner session and trusted-publisher/ownership confirmation remain pending. Publication has not been attempted; confirm the public package/version before checking this gate. Preserve the repository's existing NuGet preflight rather than bypassing it or publishing a placeholder package. - Review every criterion and the retained measurements before closing this issue and parent #1400; automated/API/performance evidence does not replace the remaining visual and public-release gates.
Success criteria
A released SharpTS installation provides a discoverable, version-compatible interpreter debugger that launches from VS Code and a client-agnostic DAP path, passes the full source/async/inspection scenario, shuts down cleanly, and has complete user-facing configuration and limitation documentation.
Non-goals
- Replacing compiled
coreclrdebugging. - Requiring the C# extension for interpreter mode.
- Editor-specific behavior inside the interpreter core.
- Dominant language
- C#
- Stars
- 156
- Forks
- 4
- Avg merge
- 14h 45m
- Merged PRs (30d)
- 40
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nickna/SharpTS
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 57/100
Maintainers usually reply within 1 day
Similar issues
-
elsa 3
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
elsa-workflows/elsa-core#9349 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
PereViader/ManualDi#200 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Forrest-Technologies/drover#1040 ·
Maintainers usually reply within 1 day
-
todo
Difficulty 1/5 Under an hour Newbie friendliness 72/100
tonybaloney/CSnakes#864 ·