Commit 75f0f30732205eeccfdf25722e4ddaaebaa9d4ca

fixed delete all breakpoints command for ruby-debug 0.10.1

Commit diff

Commands/Delete All Breakpoints.tmCommand

 
99
1010require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/rdebug_cmd.rb"
1111
12cmd = "del"
13msg = 'Breakpoints deleted.'
1412
1513dcmd = DebuggerCmd.new
16dcmd.send_command(cmd, msg)</string>
14count_breakpoints = dcmd.remote_eval_control_binding("Debugger.breakpoints.length").to_i
15if count_breakpoints == 0
16 puts "There are no breakpoints set"
17 exit
18end
19
20dcmd.remote_eval_control_binding("Debugger.breakpoints.each { |b| Debugger.remove_breakpoint(b.id) }").to_i
21new_count_breakpoints = dcmd.remote_eval_control_binding("Debugger.breakpoints.length").to_i
22if new_count_breakpoints == 0
23 puts "Deleted all #{count_breakpoints} breakpoint(s)"
24else
25 puts "Error deleting breakpoints."
26end</string>
1727 <key>fallbackInput</key>
1828 <string>line</string>
1929 <key>input</key>
toggle raw diff