re:Xcode 2.1 breakpoint feedback
re:Xcode 2.1 breakpoint feedback
- Subject: re:Xcode 2.1 breakpoint feedback
- From: Steve Lewallen <email@hidden>
- Date: Tue, 7 Jun 2005 22:09:26 -0700
The new breakpoint features in Xcode 2.1 is great, there are some
things I think can be improved a lot on.
1. Using Log/Debugger command for printf-debugging
I wanted to use them as a way to add some printf's without having to
recompile the code (Yay!), but I found that the Log Command wasn't
able to print values of variables and the Debugger Command in
combination with printf is a bit awkward to use with Obj-C. To use an
example:
NSLog(@"[Import: %@]", anObject)
printf \"[Import: %s]\n\", (char*)[[anObject debugDescription]
UTF8String]
This makes it possible, but its not as simple as it could be IMHO.
That I had to escape the "'s gave me some headache to find out, since
I only got a message in the gdb console that there was something
wrong with a command xcode sent.
Yes, this isn't as simple as we want to make it. For now, any use of
variables in such logging will need to be done just as you have done
it above.
We are tracking this issue as : <rdar://problem/4104438> Variables in
Debugger actions
2. Breakpoint groups
It would be great with a checkbox next to the group just to make it
even easier to enable/disable the breakpoints and also get clear
visual feedback if they are enabled or not.
If you click on sub-groups of the Breakpoints smart group and raise
the context menu, you can enable or disable all selected breakpoints
(including sub-groups). Also, if you hold down the option key while
doing this then the context menu will provide you with a menu item
that allows you to enable the selected breakpoints and disable all
others.
We are tracking this issue as : <rdar://problem/4141873> Need group
level breakpoint UI to control and display enable/disable state
3. Import/Export of breakpoints
Good Idea, but its only halfway. It would be a much more powerful
tool if it would be possible to use something similar to the xcconfig-
file where we can easily commit a set of breakpoints, with actions,
to the repository and when someone edit the sourcecode-file (which
means the breakpoints are moved) or change an action, the changes can
be committed and automatically updated over the entire workgroup.
This would be very useful to have a set of breakpoints that gives
specific information about some part of the application, and having a
extremly powerful way of selecting what kind of information I want to
see about the execution and not having to recompile and restart the
debugging session.
Another good suggestion.
We are tracking this issue as : <rdar://problem/4141877> Need
workgroup level project data
Thanks for the feedback,
Steve
_______________________________________________
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