• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Clear all breakpoints
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clear all breakpoints


  • Subject: Re: Clear all breakpoints
  • From: "R.L. Grigg" <email@hidden>
  • Date: Thu, 18 Oct 2007 10:08:05 -0700

On Oct 18, 2007, at 2:29 AM, Steve Checkoway wrote:

On Oct 17, 2007, at 8:38 PM, Steve Checkoway wrote:

On Oct 17, 2007, at 7:37 AM, Laurence Harris wrote:
Don't forget Command-W if you didn't have that window open before. Any plans to get it down from four steps to one Clear All Breakpoints command?


Not that this is something I actually care about, but is there no way to write a script that will do it and assign that a command?

To respond to my own question here, yes this is very easy to do with a script. Keep in mind I know next to nothing about apple script (is there actually documentation somewhere?), yet this works to delete all the breakpoints in the front project.


Edit User Scripts, create a new shell script with no input and discard output. Enter this:

#!/usr/bin/osascript
tell application "Xcode" to delete breakpoints of front project

Give it the shortcut you want (I went with command-option-shift-B, since I'm unlikely to ever hit that accidentally), and problem solved.

So let's see, a two line script, or 20 minutes filling out a radar and a long until Apple includes it, if ever. Who knows, maybe the next version of Xcode will incorporate my script...

On the one hand, it's great that OSX is so flexible that you can implement missing functionality externally via script, but the whole point, being that OSX is now up to Leopard, is that a script shouldn't have to be used for such a common task: dropping/disabling all (non-global) breakpoints. Sure looks like an oversight in the product to me.


Russ


_______________________________________________ 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
  • Follow-Ups:
    • Re: Clear all breakpoints
      • From: David Dunham <email@hidden>
References: 
 >Clear all breakpoints (From: "R.L. Grigg" <email@hidden>)
 >Re: Clear all breakpoints (From: Chris Espinosa <email@hidden>)
 >Re: Clear all breakpoints (From: Laurence Harris <email@hidden>)
 >Re: Clear all breakpoints (From: Steve Checkoway <email@hidden>)
 >Re: Clear all breakpoints (From: Steve Checkoway <email@hidden>)

  • Prev by Date: Re: headerpad_max_install_names
  • Next by Date: Re: Clear all breakpoints
  • Previous by thread: Re: Clear all breakpoints
  • Next by thread: Re: Clear all breakpoints
  • Index(es):
    • Date
    • Thread