Preset breakpoint types in Xcode

Originator:kelan
Number:rdar://11947631 Date Originated:2012-07-24
Status:Duplicate/3422737/Open Resolved:
Product:Developer Tools Product Version:Xcode 4
Classification:Enhancement Reproducible:n/a
 
Summary:

It would be nice to save "preset breakpoint types" in Xcode, and be able to set
those with one or two clicks.


Details:

When debugging with Xcode, I often set breakpoints to print out a certain
variable's value and continue.  This takes a number of steps currently.  I
have to:
1. Click in the gutter to create the breakpoint.
2. Right-click the new breakpoint and select "Edit Breakpoint".
3. Click the "Click to add an action" button.
4. Type in my command, such as "po myString".
5. Click the "Automatically continue" checkbox.
6. Click "Done".

Instead, it would be nice if I could define a list of common breakpoint actions.
Then I could do:
1. Click in gutter to set the breakpoint.
2. Right-click on it and select one of my preset types.
3. Optionally, if the preset's definition included some "placeholder" values, I
   could be prompted to fill those in (the 3rd party snippet tool TextExpander
   has similar functionality).  That would allow me to specify the variable to
   print out.


Notes:

* I envision that these presets would be set globally in Xcode's Preferences.  I
  don't think they need to be part of the projects.

* A few ideas for other useful preset examples:
    * Action:  Log Message:  %B %H  (this requires no placeholders).
    * Action:  Debugger Action:  bt

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!