| 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 |
def short_path(path, paths_to_display = 2) |
| 11 |
path.split("/")[(-1 - paths_to_display)..(-1)] * "/" |
| 12 |
end |
| 13 |
|
| 14 |
require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/ruby_amp.rb" |
| 15 |
require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/ruby_tm_helpers.rb" |
| 16 |
require "#{ENV['TM_SUPPORT_PATH']}/lib/ui.rb" |
| 17 |
|
| 18 |
d = RubyAMP::RemoteDebugger.new |
| 19 |
breakpoints = d.breakpoint.list |
| 20 |
|
| 21 |
if breakpoints.empty? |
| 22 |
puts "No breakpoints" |
| 23 |
exit_show_tool_tip |
| 24 |
end |
| 25 |
|
| 26 |
b_index = TextMate::UI.menu(breakpoints.map{|b| "#{b.source}:#{b.line}"}) |
| 27 |
|
| 28 |
exit_discard if b_index.nil? |
| 29 |
|
| 30 |
breakpoint = breakpoints[b_index] |
| 31 |
tm_open(breakpoint.source, :line => breakpoint.line)</string> |
| 32 |
<key>input</key> |
| 33 |
<string>none</string> |
| 34 |
<key>keyEquivalent</key> |
| 35 |
<string>^@b</string> |
| 36 |
<key>name</key> |
| 37 |
<string>Debug - Show Breakpoints</string> |
| 38 |
<key>output</key> |
| 39 |
<string>showAsTooltip</string> |
| 40 |
<key>uuid</key> |
| 41 |
<string>1E57B267-C3EC-4F67-84DE-3781D43DC88B</string> |
| 42 |
</dict> |
| 43 |
</plist> |