Open wpz1988 opened 4 years ago
and by the way when debug python it works ok. with codes below:
I also try eclipse and code block with the mingw I installed, and it's no problem in step1~5. so I think it's a problem of vscode cpptool side. maybe the launch.json or task.json is wrong, or this is bug for the new cpptool extension.
I think this issue is duplicate of #2771
Any news with this? Any workaround perhaps? I try to debug a GUI application, and it just doesn't work - I can step at the beginning, but if I run the program, I can no longer pause it, and placing breakpoints don't work. This makes the debugger non-functional. Please, any help is appreciated.
@justanotheranonymoususer The solution is to send a Ctrl
+C
to the console of the debuggee. At least that's how we're doing it in our fork of the Debug Engine and it's also what I've seen a lot of people suggest when debugging with GDB on Windows.
@justanotheranonymoususer The solution is to send a
Ctrl
+C
to the console of the debuggee.
When I send it in the integrated terminal, I get two ^C^C
and then it terminates the application. When I use the external terminal, it breaks, but after continuing it won't allow me to use the terminal anymore. It won't receive any keystrokes.
step3: we can do all debug operations such as watch the value of parameter,and changed them by hand.
step4: once I cancel all breakpoints and press "run" , the debug progress will can't stop anymore, step5: even I create breakpoint again in any where of the codes, result is the same.
and I found there are 3 threads in the left side of the vscode windows, all states are RUNING, when click stop in any thread , the thread is still running.
in the console side the heartbeat is keep printing.