Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clear all breakpoints



Steve,

I tried this and it's not working for me. I have never created a user script before so I'm probably missing something obvious?


#! /bin/sh # # 15-clearbreakpoints.sh - clear all breakpoints. # # -- PB User Script Info -- # %%%{PBXName=Clear All Breakpoints}%%% # %%%{PBXInput=None}%%% # %%%{PBXOutput=Discard}%%% # %%%{PBXKeyEquivalent=@~$B}%%%

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


Jim Wrenholt


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...

--
Steve Checkoway


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to 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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.