I know we could use the handle signal command in gdb to make it pass the SIGINT signal to the program. Is there a way to do the same while using the debugger in vs code?
In the Debug Console of vs code write:
-exec handle SIGINT pass
-exec handle SIGINT nostop
Open another terminal.
ps -eaf |grep <Proc-Name> // find the PID
kill -s SIGINT PID_OF_PROCESS
Get back to VS Code Now you can see and use the stacktrace etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With