Send Xcode-users mailing list submissions to
email@hidden
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.apple.com/mailman/listinfo/xcode-users
or, via email, send a message with subject or body 'help' to
email@hidden
You can reach the person managing the list at
email@hidden
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Xcode-users digest..."
Today's Topics:
1. Re: Debugging dreams? (Cem Karan)
2. Re: Debugging dreams? (Chris Espinosa)
3. Re: Debugging dreams? (Damien Bobillot)
4. Re: Xcode 2.3 broke CPlusTest? (Chris Espinosa)
----------------------------------------------------------------------
Message: 1
Date: Wed, 7 Jun 2006 11:35:16 -0400
From: Cem Karan <email@hidden>
Subject: Re: Debugging dreams?
To: Damien Bobillot <email@hidden>
Cc: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
I'm in the process of trying to track down an error in how my
object graph is being updated, and would like to be able to
visualize the current state of the graph at all times. The
debugger in XCode allows me to either a) view the current state of
the variables of my structs using the default format or b) create
a custom formatter that only displays text. I would rather use
GraphViz to display a graphical rendering of what my object graph
is like as I'm stepping thru my code, but this requires knowledge
of the current state of the machine at each step.
I've had the same issue. It may be resolved by writing a function
that dump the graph in a .dot file, and then open this file with
GraphViz.
This is actually what I'm doing right now, except that instead of
dumping the entire graph, I dump just the deltas, and then
postprocess, detecting the deltas and building up the graph as I go.
Don't forget that you may run (with the gdb prompt of Xcode's
debugger) any function you want, like the classical "print-object
my_objc_var" or "p (void)CFSHow(my_corefoundation_var)". Here, this
will be a :
p (void)DumpMyGraph("/tmp/dump.dot", my_graph_root)
You just need to write the function DumpMyGraph, and check that it
is not optimized away.
I hadn't thought about that! I'll have to spend some time playing
with it... Thank you!
Thanks,
Cem Karan
------------------------------
Message: 2
Date: Wed, 7 Jun 2006 08:53:22 -0700
From: Chris Espinosa <email@hidden>
Subject: Re: Debugging dreams?
To: Apple XCode Users Mailinglist <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"
On Jun 7, 2006, at 8:35 AM, Cem Karan wrote:
Don't forget that you may run (with the gdb prompt of Xcode's
debugger) any function you want, like the classical "print-object
my_objc_var" or "p (void)CFSHow(my_corefoundation_var)". Here,
this will be a :
p (void)DumpMyGraph("/tmp/dump.dot", my_graph_root)
You just need to write the function DumpMyGraph, and check that it
is not optimized away.
I hadn't thought about that! I'll have to spend some time playing
with it... Thank you!
You can even do this in a Debugger Action in the IDE without going to
the gdb command line. In fact, you can run a gdb script, a shell
script, or an AppleScript, with various substitutions available at
each breakpoint.
http://developer.apple.com/documentation/DeveloperTools/Conceptual/
XcodeUserGuide/Contents/Resources/en.lproj/
06_03_db_controlling_execution/chapter_41_section_2.html
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.apple.com/pipermail/xcode-users/attachments/
20060607/ca12118a/attachment.html
------------------------------
Message: 3
Date: Wed, 7 Jun 2006 18:09:41 +0200
From: Damien Bobillot <email@hidden>
Subject: Re: Debugging dreams?
To: Chris Espinosa <email@hidden>
Cc: Apple XCode Users Mailinglist <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"
Chris Espinosa wrote :
On Jun 7, 2006, at 8:35 AM, Cem Karan wrote:
Don't forget that you may run (with the gdb prompt of Xcode's
debugger) any function you want, like the classical "print-object
my_objc_var" or "p (void)CFSHow(my_corefoundation_var)". Here,
this will be a :
p (void)DumpMyGraph("/tmp/dump.dot", my_graph_root)
You just need to write the function DumpMyGraph, and check that
it is not optimized away.
I hadn't thought about that! I'll have to spend some time playing
with it... Thank you!
You can even do this in a Debugger Action in the IDE without going
to the gdb command line. In fact, you can run a gdb script, a
shell script, or an AppleScript, with various substitutions
available at each breakpoint.
http://developer.apple.com/documentation/DeveloperTools/Conceptual/
XcodeUserGuide/Contents/Resources/en.lproj/
06_03_db_controlling_execution/chapter_41_section_2.html
Yes, but one sometime needs to view the content of several complex
variables (like graphs), just before/after stepping, in order to see
their evolution. In this case there's no associated breakpoint.
Breakpoints actions are useful to make traces (when "continue" is
checked) and automatically dump information when hitting breakpoints
instead of dumping each time this information manually. It's a bit
like dynamically inserting a printf("something") call (or more
complex code) in the original source.
In fact, it depends on what exactly needs Cem Karan.
--
Damien Bobillot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.apple.com/pipermail/xcode-users/attachments/
20060607/8a4778a3/attachment.html
------------------------------
Message: 4
Date: Wed, 7 Jun 2006 10:10:36 -0700
From: Chris Espinosa <email@hidden>
Subject: Re: Xcode 2.3 broke CPlusTest?
To: "XCode Users' List" <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"
On Jun 6, 2006, at 5:13 PM, Aaron Montgomery wrote:
On Jun 6, 2006, at 5:03 PM, David Catmull wrote:
It seems that after upgrading to Xcode 2.3 I can't run more than
one CPlusTest unit test at a time without crashing my app (in
~TestCase()). Searching the archives I found another recent post
about the same problem.
Is this confirmed as an Xcode/CPlusTest issue? Is there something I
can do besides file a bug, cross my fingers, and wait until WWDC?
I filed a bug (#4560190) and haven't heard anything back. I ended
up downgrading to Xcode 2.2.
We're looking into it. It may have something to do with the order of
destruction of the test suite classes.
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.apple.com/pipermail/xcode-users/attachments/
20060607/149f77e7/attachment.html
------------------------------
_______________________________________________
Xcode-users mailing list
email@hidden
http://lists.apple.com/mailman/listinfo/xcode-users
End of Xcode-users Digest, Vol 3, Issue 410
*******************************************