cdt-gdb-adapter icon indicating copy to clipboard operation
cdt-gdb-adapter copied to clipboard

Windows: Click pause button, program can`t pause when program is running without any breakpoints.

Open noneghost opened this issue 2 years ago • 2 comments

Click pause button, program can`t pause when program is running without any breakpoints.

I find child_process.kill('SIGINT') can't pause program in windows platfrom. Because windows cmd console special mechanisms.

noneghost avatar Jul 04 '23 06:07 noneghost

Similarly, cannot set breakpoints

noneghost avatar Jul 04 '23 06:07 noneghost

I found that to terminate a process, you have to send a CTRL-C-EVENT signal to the current process group via GenerateConsoleCtrlEvent

noneghost avatar Jul 04 '23 06:07 noneghost