ZIm/crates/dap_adapters/src
Cole Miller 1083c0ac53
debugger: Special-case npm et al. as program field for JS debug definitions (#32549)
Send `runtimeExecutable` and `runtimeArgs` instead of `program` and
`args` to avoid the DAP implicitly wrapping the command in `node`.

This means that putting `pnpm vitest <file>` as the command in the
launch modal will work, as will this in debug.json:

```
[
  {
    "adapter": "JavaScript",
    "type": "pwa-node",
    "label": "Label",
    "request": "launch",
    "program": "pnpm",
    "args": ["vitest", "<file>"],
    "cwd": "/Users/name/project"
  }
]
```


Release Notes:

- Debugger Beta: made it possible to use commands like `pnpm
<subcommand> <args>` in the launch modal and debug.json
2025-06-11 23:28:45 +00:00
..
codelldb.rs debugger: Fix issues with launch.json handling (#32563) 2025-06-11 16:48:44 -04:00
dap_adapters.rs go: Use delve-dap-shim for spawning delve (#31700) 2025-05-29 21:19:56 +02:00
gdb.rs debugger: Fix issues with launch.json handling (#32563) 2025-06-11 16:48:44 -04:00
go.rs debugger: Fix issues with launch.json handling (#32563) 2025-06-11 16:48:44 -04:00
javascript.rs debugger: Special-case npm et al. as program field for JS debug definitions (#32549) 2025-06-11 23:28:45 +00:00
php.rs debugger: Fix issues with launch.json handling (#32563) 2025-06-11 16:48:44 -04:00
python.rs debugger: Fix issues with launch.json handling (#32563) 2025-06-11 16:48:44 -04:00
ruby.rs debugger: Fix issues with launch.json handling (#32563) 2025-06-11 16:48:44 -04:00