Eclipse CDT Debugging (An External Process) and Finding Its Source Code
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 proces开发者_开发技巧s 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.
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.
精彩评论