Blob of Commands/Debug - Delete All Breakpoints.tmCommand (raw blob data)

1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 <plist version="1.0">
4 <dict>
5 <key>beforeRunningCommand</key>
6 <string>nop</string>
7 <key>command</key>
8 <string>#!/usr/bin/env ruby
9
10 require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/ruby_amp.rb"
11
12 d = RubyAMP::RemoteDebugger.new
13
14 count_breakpoints = d.breakpoint.list.length
15 if count_breakpoints == 0
16 puts "There are no breakpoints set"
17 exit
18 end
19
20 count_deleted = d.breakpoint.delete_all
21
22 if count_deleted == count_breakpoints
23 puts "Deleted all #{count_deleted} breakpoint(s)"
24 else
25 puts "Error deleting breakpoints."
26 end</string>
27 <key>fallbackInput</key>
28 <string>line</string>
29 <key>input</key>
30 <string>selection</string>
31 <key>keyEquivalent</key>
32 <string>^@b</string>
33 <key>name</key>
34 <string>Debug - Delete All Breakpoints</string>
35 <key>output</key>
36 <string>showAsTooltip</string>
37 <key>uuid</key>
38 <string>5193D698-4392-494D-946B-7D9BF1B7C9CA</string>
39 </dict>
40 </plist>