Debugging in XCode without project?
Hey everyone -
So I have a nice cross-platform build system, and it builds my software with CMake. Yay.
The problem is, if I want to debug my software, I typically use gdb from the command line. Boo.
I hear XCode has sweet debugging capabilities (as a gdb frontend). Is there a straightforward way to use XCode to debug a program that wasn't built as part of an XCode project?
So I have a nice cross-platform build system, and it builds my software with CMake. Yay.
The problem is, if I want to debug my software, I typically use gdb from the command line. Boo.
I hear XCode has sweet debugging capabilities (as a gdb frontend). Is there a straightforward way to use XCode to debug a program that wasn't built as part of an XCode project?
If you want to debug from xcode, you'll need to build from xcode...
©h€ck øut µy stuƒƒ åt ragdollsoft.com
New game in development Rubber Ninjas - Mac Games Downloads
That's not true, you can use Xcode to debug an application built in another way. You'll need to create an Xcode project, a custom executable, point that custom executable at the product of the makefile, then Xcode should be able to debug it just fine. Various IDE integration features may or may not work.
Anecdotally, I find Xcode's front end to be less reliable than GDB, and since reliability is at a premium when debugging, I prefer to stick with the command-line GDB.
Anecdotally, I find Xcode's front end to be less reliable than GDB, and since reliability is at a premium when debugging, I prefer to stick with the command-line GDB.
I dunno, the only real advantages XCode has is easily being able to set breakpoints and a nice source code browser. Half of the debugging I do in XCode is still from the "run" terminal anyway where I can easily evaluate expressions and view data structures without having to fold out a bajillion disclosure triangles. Also... as OSC says, it's much less buggy.
Scott Lembcke - Howling Moon Software
Author of Chipmunk Physics - A fast and simple rigid body physics library in C.
Thanks, guys,
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Converting unix SDL project to xcode | Dominus | 0 | 3,453 |
Jan 3, 2011 04:46 AM Last Post: Dominus |
|
| I would like to be able to browse an xCode project on my PC | aerospaceman | 8 | 5,698 |
Jun 29, 2009 07:11 PM Last Post: aerospaceman |
|
| XCode doesn't realize a library has changed unless you force your project to build. | XSTNX | 6 | 4,951 |
Jun 8, 2009 10:25 AM Last Post: XSTNX |
|
| Xcode 3.0 crashes on project load | stevejohnson | 7 | 5,230 |
Jan 30, 2008 11:12 PM Last Post: gevapatz |
|
| program not running outside of debugging | wyrmmage | 22 | 7,436 |
Jan 6, 2008 01:45 PM Last Post: OneSadCookie |
|

