debugger: Specify runtimeExecutable in output of node locator (#32464)
This appears to fix some cases where we fail to launch JS tests under the debugger. Release Notes: - N/A (node locator is still gated) --------- Co-authored-by: Anthony Eid <hello@anthonyeid.me> Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
parent
dd17fd3d5a
commit
71d5c57119
4 changed files with 47 additions and 14 deletions
|
@ -55,7 +55,7 @@ impl DapLocator for NodeLocator {
|
|||
let config = serde_json::json!({
|
||||
"request": "launch",
|
||||
"type": "pwa-node",
|
||||
"program": program_path,
|
||||
"runtimeExecutable": program_path,
|
||||
"args": args,
|
||||
"cwd": build_config.cwd.clone(),
|
||||
"runtimeArgs": ["--inspect-brk"],
|
||||
|
@ -72,6 +72,6 @@ impl DapLocator for NodeLocator {
|
|||
}
|
||||
|
||||
async fn run(&self, _: SpawnInTerminal) -> Result<DebugRequest> {
|
||||
bail!("Python locator should not require DapLocator::run to be ran");
|
||||
bail!("JavaScript locator should not require DapLocator::run to be ran");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue