Eclipse CDT Debugging (An External Process) and Finding Its Source Code

只谈情不闲聊 提交于 2019-12-11 14:56:22

问题


When I attempt to debug a external process with Eclipse CDT, I'm able to attach to it, but I cannot get the debug configuration to find the original C source. When I launch the debugger with the process running within Eclipse, I can get the debugger to find the source code.

It is only when attaching to an external process that CDT doesn't find it. It simply sits content with showing the disassembled code. The problem is that the process handles input from the command line, and I don't seem to find a way to launch the debugger within Eclipse CDT and allow me to enter input.

I'm using Eclipse CDT (Helios) and Cygwin 1.7.1 btw.


回答1:


If your original goal is to pass arguments to the debugger (and not finding the source code, as your title implies), you can do it in Eclipse by going to Run -> Debug Configurations and selecting the Arguments tab, in which you can type the input arguments to your application.



来源:https://stackoverflow.com/questions/3973825/eclipse-cdt-debugging-an-external-process-and-finding-its-source-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!