Re: starting Xcode debugger from the command line, e.g. xdb, like xed...
Re: starting Xcode debugger from the command line, e.g. xdb, like xed...
- Subject: Re: starting Xcode debugger from the command line, e.g. xdb, like xed...
- From: Fons Rademakers <email@hidden>
- Date: Wed, 30 Jun 2010 14:46:45 +0200
- Keywords: CERN SpamKiller Note: -50
- Organization: CERN
I've decided to implement an xdb script that creates an on-the-fly an
xcodeproj setup to debug the executable specified on the command line.
Nothing fancy, but it does the trick for me. Use it like:
xdb <executable> [<arg1>...<argn>]
the script makes an xcodeproj starting from an xcodeproj template in which
it sets the executable, the current path, the arguments and a number of
environment variables. The attached tar file contains the xdb script and
the template xcodeproj. Modify in the xdb script the path to the template
xcodeproj. Hope you like it. If you've mods let me know.
Cheers, Fons.
On 25/06/2010 15:00, Fons Rademakers wrote:
So we have opposite opinions, and your way of working is already supported
(having the xcodebuild command line command), now I want my xdb command
line command ;-)
-- Fons
On 25/06/10 13:42, Alastair Houghton wrote:
On 25 Jun 2010, at 09:20, Fons Rademakers wrote:
We work on a large cross platform framework and therefore use plain
gmake, but the Xcode debugger is great to debug, manage breakpoints,
observe registers, variables, etc. I use it all the time. Only setting
it up for each binary is a pain and could surely be done via a small
script generating a "dummy" Xcode project.
And as another data point, we use Xcode for development (and xcodebuild
for command line builds from scripts), but I quite often use command line
GDB because of the relative unreliability and sluggishness of the Xcode
debugger.
(I should say, it has improved considerably in recent versions of Xcode,
though when I *do* use Xcode's debugger I tend to drive it from the
debugger console---moving the mouse all the time is too annoying.)
I have yet to try LLDB, though if it's as good as the rest of the LLVM
project it'll be well worth using.
Kind regards,
Alastair.
--
Org: CERN, European Laboratory for Particle Physics.
Mail: 1211 Geneve 23, Switzerland
E-Mail: email@hidden Phone: +41 22 7679248
WWW: http://fons.rademakers.org Fax: +41 22 7669640
Attachment:
xdb.tgz
Description: GNU Zip compressed data
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >starting Xcode debugger from the command line, e.g. xdb, like xed... (From: Fons Rademakers <email@hidden>) |
| >Re: starting Xcode debugger from the command line, e.g. xdb, like xed... (From: Jens Alfke <email@hidden>) |
| >Re: starting Xcode debugger from the command line, e.g. xdb, like xed... (From: Fons Rademakers <email@hidden>) |
| >Re: starting Xcode debugger from the command line, e.g. xdb, like xed... (From: Alastair Houghton <email@hidden>) |
| >Re: starting Xcode debugger from the command line, e.g. xdb, like xed... (From: Fons Rademakers <email@hidden>) |