Re: how to debug an executable file with arguments
Re: how to debug an executable file with arguments
- Subject: Re: how to debug an executable file with arguments
- From: Ken Thomases <email@hidden>
- Date: Mon, 3 Aug 2009 17:10:43 -0500
On Aug 3, 2009, at 4:59 PM, Shuangxing Dai wrote:
I was wondering how to debug an excutable file using Xcode. For
example, I want to debug the file mdrun.o on path /usr/local/mdrun.
The arguments for this executable file is: -c steep.g96. It runs
like: mdrun -c steep.g96 For gdb, I can easily do this by using:
gdb /usr/local/mdrun
In gdb, I use: run -c steep.g96
By this way, I can debug this file using gdb.
But for Xcode, I do not know how to debug this file, although I know
how to debug a scouce code and the excutable file genertated by the
code.
Since I am new to Xcode, anyone can help me?
In Xcode, you can configure the properties for the executable. That
includes arguments and environment variables.
http://developer.apple.com/DOCUMENTATION/DeveloperTools/Conceptual/XcodeProjectManagement/080-Defining_Executable_Environments/executable_environments.html#//apple_ref/doc/uid/TP40002698-CJBCBFAE
Cheers,
Ken
_______________________________________________
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