feat(vscode): launch a native program in the debugger #762
No reviewers
Labels
No labels
loop
queue/failed
queue/queued
ready
status/parked
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
torbscript/language!762
Loading…
Reference in a new issue
No description provided.
Delete branch "loop/739-debug-native-docs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #739
Refs #42
The last step of the debugger epic: the VS Code extension can launch a native program, and the docs and the design record say so.
editors/vscode/package.json: launch attributenative, initial configuration "Debug Native File", snippet "TorbScript: Debug a Native Program".editors/vscode/debugging.js:native: trueis kept throughresolve;nativetogether withtestis refused with a message naming both. The VS Code integration test (test/debugging.js) checks the refusal.docs/how-to/set-up-your-editor.md: "Debug a native program" in step 6 and a native entry in the full example.docs/tooling/torb-debug.md: checked againstcompiler/src/debugger/native.trbandtests/debug-native/(install hint,$TORB_DEBUG_NATIVEerrors, source names invariables, source mapping); thenativerow links the editor guide.docs/design/DEBUGGER.md: sections 4, 17 and 20 updated, slice 12 added to section 18, header no longer lists native programs as open.skills/torbscript/: the two changed pages carried over astorb docs skillrenders them.No seed, syntax, native or driver flag is touched. The acceptance criterion of #42 holds when this lands.
Test:
node --checkon the touched JS files,package.jsonparses,tools/check-commits.sh origin/main HEADclean. The gates (docs,skills/, extension tests) run in forge CI.Checklist (head
26bb8f1):refuseNativeWithTestcovers the new refusal (editors/vscode/test/debugging.js). CI is green on this head, including the VS Code extension job, docs/pdisc and the gates.resolvecopies the configuration, sonativeis kept.nativetogether withtestreturnsundefinedwith a message naming both attributes (editors/vscode/debugging.js). The check sits after the program/test check, so the message is reachable.$TORB_DEBUG_NATIVEerrors, LLVM 18 / gdb 14 install hints,sourceMapandset substitute-pathmatchcompiler/src/debugger/native.trb. Theskills/torbscript/copies are identical to the docs diffs.Non-blocking: none.