probe-rs / vscode

VSCode debug extension for probe-rs. It uses the MS DAP protocol to communicate directly with the probe (via probe-rs), and supports basic command line debugging in addition to VSCode UI.
https://probe.rs/
Other
65 stars 6 forks source link

Fix: VSCode fails to launch probe-rs-debugger - ENOENT" #44

Closed noppej closed 1 year ago

noppej commented 1 year ago

When the user specifies a cwd folder that doesn't exist, VSCode fails to launch the probe-rs-debugger process, with:

probe-rs-debugger process encountered an error: {"errno":-2,"code":"ENOENT","syscall":"spawn probe-rs-debugger","path":"probe-rs-debugger","spawnargs":["debug","--port","60126","--vscode"]}

This PR will test for cwd existence and provide a meaningful error if it does not.