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 5 forks source link

Ensure VSCode extension catches all STDERR errors if `probe-rs dap-server` process initialization fails. #63

Closed noppej closed 12 months ago

noppej commented 12 months ago

Currently, the VSCode extension will report Node child_process.spawn() error messages when the probe-rs dap-server process initialization fails, and "unintentionally" looses the STDERR messages which accompany this event.

This PR will ensure the STDERR messages are shown to the user, to help them fix configuration related errors.

In addition, this PR also:

Note: Ideally we should wait for https://github.com/probe-rs/probe-rs/pull/1699 to be released before merging this PR.