Skip to content

Added tool for generating vscode debug tasks#3671

Merged
UebelAndre merged 7 commits intobazelbuild:mainfrom
UebelAndre:debug
Oct 20, 2025
Merged

Added tool for generating vscode debug tasks#3671
UebelAndre merged 7 commits intobazelbuild:mainfrom
UebelAndre:debug

Conversation

@UebelAndre
Copy link
Copy Markdown
Collaborator

This change introduces //tools/vscode which includes tools for vscode integrations. Separate from //tools/rust_analyzer, this new package includes a gen_launch_json target which can be used to generate "Run and Debug" tasks for rust_binary and rust_test targets.

closes #370

@UebelAndre UebelAndre force-pushed the debug branch 6 times, most recently from e90ac2a to afad691 Compare October 15, 2025 21:03
@UebelAndre UebelAndre marked this pull request as ready for review October 15, 2025 21:05
.unwrap_or_else(|_| panic!("couldn't open {:?}", &launch_json_path));

// Verify basic JSON structure
assert!(content.contains(r#""version": "0.2.0""#));
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'd be tempted to actually parse the JSON here rather than doing string asserts, but also recognise going from 0 to non-0 dependencies is annoying

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done

Comment thread tools/vscode/src/bin/gen_launch_json.rs
Comment thread tools/vscode/src/lib.rs Outdated
Comment thread tools/vscode/src/lib.rs Outdated
Comment thread tools/vscode/src/lib.rs Outdated
Comment thread tools/vscode/src/lib.rs Outdated
UebelAndre and others added 4 commits October 19, 2025 10:19
Co-authored-by: Daniel Wagner-Hall <dawagner@gmail.com>
Co-authored-by: Daniel Wagner-Hall <dawagner@gmail.com>
Co-authored-by: Daniel Wagner-Hall <dawagner@gmail.com>
@UebelAndre UebelAndre added this pull request to the merge queue Oct 20, 2025
Merged via the queue into bazelbuild:main with commit 7439f60 Oct 20, 2025
3 checks passed
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.

FR: Debugger setup in vscode

2 participants