弱弱的问一下Qt Creator多线程怎么调试
发布网友
发布时间:2022-05-02 01:14
我来回答
共1个回答
热心网友
时间:2022-06-26 00:59
if gdb, on the command console:
set follow-fork-mode mode
Set the debugger response to a program call of fork or vfork. A call to fork or vfork creates a new process. The mode argument can be:
parent
The original process is debugged after a fork. The child process runs unimpeded. This is the default.
child
The new process is debugged after a fork. The parent process runs unimpeded.
if QT creator:
Go to Tools > Options > Debugging > GDB Extended and select Debug all children