Hi.
I've been looking all over the place, to no avail. Hopefully I need to look no further than here...
I have a Mac OS X console application built with GCC that came with Snow Leopard. I specified "-g" as a compiler option to include debug symbols. The executable runs fine.
Now, how do I debug it using Xcode? The Apple documentation says I can invoke Xcode, go to Run --> Attach to Process in order to attach the Xcode debugger to a running process. However, everything under "Attach to Process" is greyed out, including the "Attach to Process ID" option. I did run "top" and made sure my executable was listed there with a valid PID.
What am I doing wrong? Any help would be much appreciated.
I've been looking all over the place, to no avail. Hopefully I need to look no further than here...
I have a Mac OS X console application built with GCC that came with Snow Leopard. I specified "-g" as a compiler option to include debug symbols. The executable runs fine.
Now, how do I debug it using Xcode? The Apple documentation says I can invoke Xcode, go to Run --> Attach to Process in order to attach the Xcode debugger to a running process. However, everything under "Attach to Process" is greyed out, including the "Attach to Process ID" option. I did run "top" and made sure my executable was listed there with a valid PID.
What am I doing wrong? Any help would be much appreciated.