under the directory of the project, create file .gdbinit
write the "set follow-fork-mode child"
then you can debug the child process
转载于:https://www.cnblogs.com/sunyongjie1984/p/4285388.html