Re: The case of the broken breakpoints
Re: The case of the broken breakpoints
- Subject: Re: The case of the broken breakpoints
- From: "Paul Sanders" <email@hidden>
- Date: Fri, 1 Jan 2010 10:21:53 -0000
Having started the debugger and waited for it to load up your
app:
1. Open the console window.
2. Click on the 'pause' button in the toolbar.
You can then type gdb commands at the prompt.
You can also set breakpoints ('b') and clear breakpoints ('d b')
at the console prompt. I find this useful because Xcode
sometimes seems to lose track of a breakpoint and then you can't
clear it via the gui.
When my breakpoints are not working (i.e. showing as yellow) and
I run 'sharedlibrary apply-load-rules all', I see a lot of
'pending breakpoint xyz resolved' messages fly by in the console
window. Before that, all the breakpoints are indeed marked as
pending (as reported by gdb's 'info b' comand. Maybe there is a
clue for Jason there.
As an aside, it's well worth mastering some of the more useful
gdb command prompts. The marriage between Xcode and gdb is not
an entirely harmonious one and you can do thing at the command
prompt that you cannot do in any other way (such as invoke a
method on the fly). In particular, the 'print' command is a
powerful alternative to the expressions window. That does not
keep up with values of variables as they change, for me at
least, and is therefore not of much use. The 'display' command
can also be handy. GDB documentation here:
http://www.delorie.com/gnu/docs/gdb/gdb_toc.html
Paul Sanders.
----- Original Message -----
From: "Oftenwrong Soong" <email@hidden>
To: <email@hidden>
Sent: Thursday, December 31, 2009 11:01 PM
Subject: Re: The case of the broken breakpoints
By the way, you mentioned using that command after hitting
'pause.' I hope this doesn't seem like a silly question, but how
do you do that?
...
_______________________________________________
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