-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
23: Fix #15: debugging session closes silently r=Tiwalun a=noppej This fix for #15 includes the following: - In addition to checking for error `code`, also check for the possibility of a process `signal`. - Previously the `probe-rs-debugger` process was started with `child_process.execFile`, which has a default `maxBuffer` for stdio of `1024 * 1024`. When the stdout or stderr (RUST_LOG output is handled this way) exceeded this, VSCode would terminate the process and truncate the output ... and because we didn't test the `signal`, we never saw the `SIGTERM` event happening, and it looked as if the `probe-rs-debugger` failed silently. I have changed this to use `child_process.spawn`, which uses `Stream` objects instead of `Buffer` objects to handle the stdio from the child process. - Bump the version number of the extension to 0.3.3 Co-authored-by: JackN <[email protected]>
- Loading branch information
Showing
2 changed files
with
74 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters