1) Put a breakpoint onto lines you want debugin.
在你想调试的地方设置断点
2) In debug configuration enable “non-stop mode” and “automatically debug forked process”.
在调置设置窗口,将”non-stop mode” 和 “automatically debug forked process”打钩.
3) Start debug session. You will hit a breakpoint either in child or parent. . Now see debug view.
开始调试。程序停在了你的设置的断点处。还可以在调试窗口,看到生成的进程。
参考网址:
http://stackoverflow.com/questions/15467162/debug-fork-in-eclipse-cdt