Re: Running without the debugger
Re: Running without the debugger
- Subject: Re: Running without the debugger
- From: Jean-Daniel Dupas <email@hidden>
- Date: Thu, 3 Jun 2010 17:02:52 +0200
Le 3 juin 2010 à 16:50, Ben Haller a écrit :
> On 3-Jun-10, at 10:40 AM, Matt Neuburg wrote:
>
>> On or about 6/3/10 2:27 AM, thus spake "Ben Haller"
>> <email@hidden>:
>>
>>> wanting to launch without having to tell gdb to run; at present, it
>>> seems I need to open the console window and type "r <return>", which
>>> is an extra step
>>
>> No wonder you're mad! I would be too. I've never heard of that happening, so
>> I'm afraid I can't guess what the problem is. I generally find launching
>> quite fast, and I've never had to type anything in the console to help it
>> along; in fact, I often set my Xcode preferences so that I don't even *see*
>> the console. m.
>
> Hmm, interesting. I thought this was standard behavior; I think it's giving me a chance to set breakpoints before my program starts running, or something. Here's what my sessions always look like:
>
> [Session started at 2010-06-03 16:46:18 +0200.]
> GNU gdb 6.3.50-20050815 (Apple version gdb-1346) (Fri Sep 18 20:40:51 UTC 2009)
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB. Type "show warranty" for details.
> This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys002
> Loading program into debugger…
> Program loaded.
> (gdb) bt
> No stack.
> (gdb) r
> Starting program: /Users/bhaller/objects/Debug/Antikythera.app/Contents/MacOS/Antikythera
> Not executing.
> (gdb) run
> [Switching to process 7107]
> Running…
>
> So I guess the new question is: why does gdb do this to me, but not to others?
>
This is another "Executable" setting. Open your Executable properties (by expanding the Executables group in Xcode and by doulbe clicking you executable).
Choose the "Debugging" tab.
And check the "Start executable after starting debugger" check box.
It is checked by default, this is why nobody never encounter this behavior.
-- Jean-Daniel
_______________________________________________
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