Skip to content

Commit aa6e74e

Browse files
authored
Update bazel run command for VSCode debug (#3734)
The vscod_debug package does not exist. This target does
1 parent 982c202 commit aa6e74e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/vscode/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ impl LaunchConfigGenerator {
273273
// 3. Creates the debug target
274274
"script ".to_owned() + &[
275275
"import subprocess, os, sys".to_owned(),
276-
format!("result = subprocess.run(['bazel', 'run', '--compilation_mode=dbg', '--strip=never', '--run_under=@rules_rust//tools/vscode_debug:get_binary_path', '{}'], stdout=subprocess.PIPE, text=True, cwd='${{workspaceFolder}}')", target_info.label),
276+
format!("result = subprocess.run(['bazel', 'run', '--compilation_mode=dbg', '--strip=never', '--run_under=@rules_rust//tools/vscode:get_binary_path', '{}'], stdout=subprocess.PIPE, text=True, cwd='${{workspaceFolder}}')", target_info.label),
277277
"binary_path = result.stdout.strip().splitlines()[-1]".to_owned(),
278278
format!("assert binary_path, 'No binary path output for {}'", target_info.label),
279279
"abs_path = os.path.join('${workspaceFolder}', binary_path)".to_owned(),

0 commit comments

Comments
 (0)