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:
Cole Miller 2025-06-10 16:42:55 -04:00 committed by GitHub
parent dd17fd3d5a
commit 71d5c57119
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 47 additions and 14 deletions

View file

@ -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");
}
}