Closed noppej closed 2 years ago
I am waiting for the original reporter of this problem to test that this fix closes #15.
I am waiting for the original reporter of this problem to test that this fix closes #15.
The user confirmed that this fix now reports the errors correctly, and resolves the "silent closure" reported in #15
bors r+
Build succeeded:
This fix for #15 includes the following:
code
, also check for the possibility of a processsignal
.probe-rs-debugger
process was started withchild_process.execFile
, which has a defaultmaxBuffer
for stdio of1024 * 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 thesignal
, we never saw theSIGTERM
event happening, and it looked as if theprobe-rs-debugger
failed silently. I have changed this to usechild_process.spawn
, which usesStream
objects instead ofBuffer
objects to handle the stdio from the child process.