ruby-debug-ide 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,7 @@
1
+ require 'ruby-debug/helper'
2
+
1
3
  module Debugger
4
+
2
5
  class Command # :nodoc:
3
6
  class << self
4
7
  def commands
@@ -17,13 +20,16 @@ module Debugger
17
20
  klass.options[o] = v if klass.options[o].nil?
18
21
  end
19
22
  commands << klass
20
- end
21
-
23
+ end
24
+
22
25
  def load_commands
23
26
  dir = File.dirname(__FILE__)
24
27
  Dir[File.join(dir, 'commands', '*')].each do |file|
25
28
  require file if file =~ /\.rb$/
26
29
  end
30
+ Debugger.constants.grep(/Functions$/).map { |name| Debugger.const_get(name) }.each do |mod|
31
+ include mod
32
+ end
27
33
  end
28
34
 
29
35
  def method_missing(meth, *args, &block)
@@ -50,9 +56,9 @@ module Debugger
50
56
  def match(input)
51
57
  @match = regexp.match(input)
52
58
  end
53
-
59
+
54
60
  protected
55
-
61
+
56
62
  def method_missing(meth, *args, &block)
57
63
  if @printer.respond_to? meth
58
64
  @printer.send meth, *args, &block
@@ -64,11 +70,7 @@ module Debugger
64
70
  def print(*args)
65
71
  @state.print(*args)
66
72
  end
67
-
68
- def confirm(msg)
69
- @state.confirm(msg) == 'y'
70
- end
71
-
73
+
72
74
  # see Timeout::timeout, the difference is that we must use a DebugThread
73
75
  # because every other thread would be halted when the event hook is reached
74
76
  # in ruby-debug.c
@@ -99,7 +101,7 @@ module Debugger
99
101
  throw :debug_error
100
102
  end
101
103
  end
102
-
104
+
103
105
  def debug_silent_eval(str)
104
106
  begin
105
107
  eval(str, get_binding)
@@ -122,14 +124,14 @@ module Debugger
122
124
  binding = @state.context.frame_binding(@state.frame_pos)
123
125
  binding || hbinding(@state.context.frame_locals(@state.frame_pos))
124
126
  end
125
-
127
+
126
128
  def line_at(file, line)
127
129
  Debugger.line_at(file, line)
128
130
  end
129
-
131
+
130
132
  def get_context(thnum)
131
133
  Debugger.contexts.find{|c| c.thnum == thnum}
132
- end
134
+ end
133
135
  end
134
136
 
135
137
  Command.load_commands
@@ -5,11 +5,11 @@ module Debugger
5
5
  def regexp
6
6
  / ^\s*
7
7
  b(?:reak)?
8
- \s+
8
+ (?: \s+
9
9
  (?:
10
10
  (\d+) |
11
11
  (.+?)[:.#]([^.:\s]+)
12
- )
12
+ ))?
13
13
  (?:\s+
14
14
  if\s+(.+)
15
15
  )?
@@ -19,15 +19,15 @@ module Debugger
19
19
 
20
20
  def execute
21
21
  if @match[1]
22
- pos, _, _, expr = @match.captures
22
+ line, _, _, expr = @match.captures
23
23
  else
24
- _, file, pos, expr = @match.captures
24
+ _, file, line, expr = @match.captures
25
25
  end
26
-
26
+
27
27
  if file.nil?
28
28
  file = File.basename(@state.file)
29
29
  else
30
- if pos !~ /^\d+$/
30
+ if line !~ /^\d+$/
31
31
  klass = debug_silent_eval(file)
32
32
  if klass && !klass.kind_of?(Module)
33
33
  print_error "Unknown class #{file}"
@@ -40,13 +40,13 @@ module Debugger
40
40
  end
41
41
  end
42
42
 
43
- if pos =~ /^\d+$/
44
- pos = pos.to_i
43
+ if line =~ /^\d+$/
44
+ line = line.to_i
45
45
  else
46
- pos = pos.intern.id2name
46
+ line = line.intern.id2name
47
47
  end
48
48
 
49
- b = Debugger.add_breakpoint file, pos, expr
49
+ b = Debugger.add_breakpoint file, line, expr
50
50
  print_breakpoint_added b
51
51
  end
52
52
 
@@ -57,6 +57,7 @@ module Debugger
57
57
 
58
58
  def help(cmd)
59
59
  %{
60
+ b[reak] file:line [if expr]
60
61
  b[reak] [file|class(:|.|#)]<line|method> [if expr] -
61
62
  \tset breakpoint to some position, (optionally) if expr == true
62
63
  }
@@ -92,21 +93,23 @@ module Debugger
92
93
  self.control = true
93
94
 
94
95
  def regexp
95
- /^\s*del(?:ete)?(?:\s+(\d+))?$/
96
+ /^\s*del(?:ete)?(?:\s+(.*))?$/
96
97
  end
97
98
 
98
99
  def execute
99
- pos = @match[1]
100
- unless pos
101
- if confirm("Clear all breakpoints? (y/n) ")
100
+ brkpts = @match[1]
101
+ unless brkpts
102
102
  Debugger.breakpoints.clear
103
- end
104
103
  else
105
- pos = pos.to_i
106
- if b = Debugger.remove_breakpoint(pos)
107
- print_breakpoint_deleted b
108
- else
109
- print_error "Breakpoint %d is not defined", pos
104
+ brkpts.split(/[ \t]+/).each do |pos|
105
+ pos = get_int(pos, "Delete", 1)
106
+ return unless pos
107
+ b = Debugger.remove_breakpoint(pos)
108
+ if b
109
+ print_breakpoint_deleted b
110
+ else
111
+ print_error "No breakpoint number %d\n", pos
112
+ end
110
113
  end
111
114
  end
112
115
  end
@@ -118,7 +121,7 @@ module Debugger
118
121
 
119
122
  def help(cmd)
120
123
  %{
121
- del[ete][ nnn]\tdelete some or all breakpoints
124
+ del[ete][ nnn...]\tdelete some or all breakpoints
122
125
  }
123
126
  end
124
127
  end
@@ -7,6 +7,7 @@ module Debugger
7
7
  end
8
8
 
9
9
  def execute
10
+ @printer.print_msg("finished")
10
11
  @printer.print_debug("Exiting debugger.")
11
12
  exit! # exit -> exit!: No graceful way to stop threads...
12
13
  end
@@ -74,9 +74,22 @@ module Debugger
74
74
  elsif (obj.is_a?(Hash)) then
75
75
  print_hash(obj)
76
76
  else
77
- b = obj.instance_eval{binding()}
78
- print_variables(obj.instance_variables, 'instance') do |var|
79
- debug_eval(var, b)
77
+ print_element("variables") do
78
+ # instance variables
79
+ kind = 'instance'
80
+ inst_vars = obj.instance_variables
81
+ instance_binding = obj.instance_eval{binding()}
82
+ # print self at top position
83
+ print_variable('self', debug_eval('self', instance_binding), kind) if inst_vars.include?('self')
84
+ inst_vars.sort.each do |var|
85
+ print_variable(var, debug_eval(var, instance_binding), kind) unless var == 'self'
86
+ end
87
+
88
+ # class variables
89
+ class_binding = obj.class.class_eval('binding()')
90
+ obj.class.class_variables.sort.each do |var|
91
+ print_variable(var, debug_eval(var, class_binding), 'class')
92
+ end
80
93
  end
81
94
  end
82
95
  end
@@ -0,0 +1,26 @@
1
+ module Debugger
2
+
3
+ module ParseFunctions
4
+ # Parse 'str' of command 'cmd' as an integer between
5
+ # min and max. If either min or max is nil, that
6
+ # value has no bound.
7
+ def get_int(str, cmd, min=nil, max=nil, default=1)
8
+ return default unless str
9
+ begin
10
+ int = Integer(str)
11
+ if min and int < min
12
+ print_error "%s argument '%s' needs to at least %s.\n" % [cmd, str, min]
13
+ return nil
14
+ elsif max and int > max
15
+ print_error "%s argument '%s' needs to at most %s.\n" % [cmd, str, max]
16
+ return nil
17
+ end
18
+ return int
19
+ rescue
20
+ print_error "%s argument '%s' needs to be a number.\n" % [cmd, str]
21
+ return nil
22
+ end
23
+ end
24
+
25
+ end
26
+ end
@@ -1,71 +1,15 @@
1
1
  module Debugger
2
- class LocalInterface # :nodoc:
3
- def read_command(prompt)
4
- readline(prompt, true)
5
- end
6
-
7
- def confirm(prompt)
8
- readline(prompt, false)
9
- end
10
-
11
- def print(*args)
12
- STDOUT.printf(*args)
13
- end
14
-
15
- def close
16
- end
17
-
18
- private
19
-
20
- begin
21
- require 'readline'
22
- class << Debugger
23
- FILE_HISTORY = ".rdebug_hist"
24
- save_file = File.join(ENV["HOME"]||ENV["HOMEPATH"], FILE_HISTORY)
25
- open(save_file, 'r') do |file|
26
- file.each do |line|
27
- line.chomp!
28
- Readline::HISTORY << line
29
- end
30
- end if File.exists?(save_file)
31
-
32
- define_method(:save_history) do
33
- open(save_file, 'w') do |file|
34
- Readline::HISTORY.to_a.last(500).each do |line|
35
- file.puts line unless line.strip.empty?
36
- end
37
- end rescue nil
38
- end
39
- public :save_history
40
- end
41
- Debugger.debug_at_exit { Debugger.save_history }
42
-
43
- def readline(prompt, hist)
44
- Readline::readline(prompt, hist)
45
- end
46
- rescue LoadError
47
- def readline(prompt, hist)
48
- STDOUT.print prompt
49
- STDOUT.flush
50
- line = STDIN.gets
51
- exit unless line
52
- line.chomp!
53
- line
54
- end
55
- end
56
- end
57
2
 
58
3
  class RemoteInterface # :nodoc:
4
+
59
5
  def initialize(socket)
60
6
  @socket = socket
61
7
  end
62
8
 
63
- def read_command(prompt)
64
- send_command "PROMPT #{prompt}"
65
- end
66
-
67
- def confirm(prompt)
68
- send_command "CONFIRM #{prompt}"
9
+ def read_command
10
+ result = @socket.gets
11
+ raise IOError unless result
12
+ result.chomp
69
13
  end
70
14
 
71
15
  def print(*args)
@@ -77,42 +21,6 @@ module Debugger
77
21
  rescue Exception
78
22
  end
79
23
 
80
- private
81
-
82
- def send_command(msg)
83
- @socket.puts msg
84
- result = @socket.gets
85
- raise IOError unless result
86
- result.chomp
87
- end
88
24
  end
89
25
 
90
- class ScriptInterface # :nodoc:
91
- def initialize(file, out)
92
- @file = file.respond_to?(:gets) ? file : open(file)
93
- @out = out
94
- end
95
-
96
- def read_command(prompt)
97
- while result = @file.gets
98
- next if result =~ /^\s*#/
99
- next if result.strip.empty?
100
- break
101
- end
102
- raise IOError unless result
103
- result
104
- end
105
-
106
- def confirm(prompt)
107
- 'y'
108
- end
109
-
110
- def print(*args)
111
- @out.print(*args)
112
- end
113
-
114
- def close
115
- @file.close
116
- end
117
- end
118
26
  end
@@ -19,7 +19,7 @@ module Debugger
19
19
  state = ControlState.new(@interface, control_cmds)
20
20
  commands = control_cmds.map{|cmd| cmd.new(state, @printer) }
21
21
 
22
- while input = @interface.read_command("")
22
+ while input = @interface.read_command
23
23
  # escape % since print_debug might use printf
24
24
  @printer.print_debug "Processing: #{input.gsub('%', '%%')}"
25
25
  catch(:debug_error) do
@@ -110,10 +110,6 @@ module Debugger
110
110
  @interface.print(*args)
111
111
  end
112
112
 
113
- def confirm(*args)
114
- @interface.confirm(*args)
115
- end
116
-
117
113
  def proceed?
118
114
  @proceed
119
115
  end
@@ -137,10 +133,6 @@ module Debugger
137
133
  @interface.print(*args)
138
134
  end
139
135
 
140
- def confirm(*args)
141
- 'y'
142
- end
143
-
144
136
  def context
145
137
  nil
146
138
  end
@@ -1,7 +1,8 @@
1
1
  require 'cgi'
2
-
2
+ require 'yaml'
3
3
 
4
4
  module Debugger
5
+
5
6
  class XmlPrinter # :nodoc:
6
7
  attr_accessor :interface
7
8
 
@@ -12,7 +13,7 @@ module Debugger
12
13
  def print_msg(*args)
13
14
  msg, *args = args
14
15
  xml_message = CGI.escapeHTML(msg % args)
15
- print "<message>#{xml_message}</message>\n"
16
+ print "<message>#{xml_message}</message>"
16
17
  end
17
18
 
18
19
  def print_error(*args)
@@ -43,8 +44,9 @@ module Debugger
43
44
  end
44
45
 
45
46
  def print_frame(context, idx, cur_idx)
46
- print "<frame no=\"%s\" file=\"%s\" line=\"%s\" #{'current="true" ' if idx == cur_idx}/>\n",
47
- idx, context.frame_file(idx), context.frame_line(idx)
47
+ # idx + 1: one-based numbering as classic-debugger
48
+ print "<frame no=\"%s\" file=\"%s\" line=\"%s\" #{'current="true" ' if idx == cur_idx}/>",
49
+ idx + 1, context.frame_file(idx), context.frame_line(idx)
48
50
  end
49
51
 
50
52
  def print_contexts(contexts)
@@ -57,7 +59,7 @@ module Debugger
57
59
 
58
60
  def print_context(context)
59
61
  current = 'current="yes"' if context.thread == Thread.current
60
- print "<thread id=\"%s\" status=\"%s\" #{current}/>\n", context.thnum, context.thread.status
62
+ print "<thread id=\"%s\" status=\"%s\" #{current}/>", context.thnum, context.thread.status
61
63
  end
62
64
 
63
65
  def print_variables(vars, kind)
@@ -95,7 +97,7 @@ module Debugger
95
97
 
96
98
  def print_variable(name, value, kind)
97
99
  if nil == value then
98
- print("<variable name=\"%s\" kind=\"%s\"/>\n", CGI.escapeHTML(name), kind)
100
+ print("<variable name=\"%s\" kind=\"%s\"/>", CGI.escapeHTML(name), kind)
99
101
  return
100
102
  end
101
103
  if value.is_a?(Array) || value.is_a?(Hash)
@@ -113,14 +115,14 @@ module Debugger
113
115
  end
114
116
  end
115
117
  value_str = "[Binary Data]" if value_str.is_binary_data?
116
- print("<variable name=\"%s\" kind=\"%s\" value=\"%s\" type=\"%s\" hasChildren=\"%s\" objectId=\"%#+x\"/>\n",
118
+ print("<variable name=\"%s\" kind=\"%s\" value=\"%s\" type=\"%s\" hasChildren=\"%s\" objectId=\"%#+x\"/>",
117
119
  CGI.escapeHTML(name), kind, CGI.escapeHTML(value_str), value.class, has_children, value.object_id)
118
120
  end
119
121
 
120
122
  def print_breakpoints(breakpoints)
121
123
  print_element 'breakpoints' do
122
124
  breakpoints.sort_by{|b| b.id }.each do |b|
123
- print "<breakpoint n=\"%d\" file=\"%s\" line=\"%s\" />\n", b.id, b.source, b.pos.to_s
125
+ print "<breakpoint n=\"%d\" file=\"%s\" line=\"%s\" />", b.id, b.source, b.pos.to_s
124
126
  end
125
127
  end
126
128
  end
@@ -142,11 +144,11 @@ module Debugger
142
144
  end
143
145
 
144
146
  def print_expression(exp, value, idx)
145
- print "<dispay name=\"%s\" value=\"%s\" no=\"%d\" />\n", exp, value, idx
147
+ print "<dispay name=\"%s\" value=\"%s\" no=\"%d\" />", exp, value, idx
146
148
  end
147
149
 
148
150
  def print_eval(exp, value)
149
- print "<eval expression=\"%s\" value=\"%s\" />\n", CGI.escapeHTML(exp), value
151
+ print "<eval expression=\"%s\" value=\"%s\" />", CGI.escapeHTML(exp), value
150
152
  end
151
153
 
152
154
  def print_pp(exp, value)
@@ -174,7 +176,7 @@ module Debugger
174
176
  def print_methods(methods)
175
177
  print_element "methods" do
176
178
  methods.each do |method|
177
- print "<method name=\"%s\" />\n", method
179
+ print "<method name=\"%s\" />", method
178
180
  end
179
181
  end
180
182
  end
@@ -182,27 +184,27 @@ module Debugger
182
184
  # Events
183
185
 
184
186
  def print_breakpoint(n, breakpoint)
185
- print("<breakpoint file=\"%s\" line=\"%s\" threadId=\"%d\"/>\n",
187
+ print("<breakpoint file=\"%s\" line=\"%s\" threadId=\"%d\"/>",
186
188
  breakpoint.source, breakpoint.pos, Debugger.current_context.thnum)
187
189
  end
188
190
 
189
191
  def print_catchpoint(exception)
190
192
  context = Debugger.current_context
191
- print("<exception file=\"%s\" line=\"%s\" type=\"%s\" message=\"%s\" threadId=\"%d\"/>\n",
193
+ print("<exception file=\"%s\" line=\"%s\" type=\"%s\" message=\"%s\" threadId=\"%d\"/>",
192
194
  context.frame_file(0), context.frame_line(0), exception.class, CGI.escapeHTML(exception.to_s), context.thnum)
193
195
  end
194
196
 
195
197
  def print_trace(context, file, line)
196
- print "<trace file=\"%s\" line=\"%s\" threadId=\"%d\" />\n", file, line, context.thnum
198
+ print "<trace file=\"%s\" line=\"%s\" threadId=\"%d\" />", file, line, context.thnum
197
199
  end
198
200
 
199
201
  def print_at_line(file, line)
200
- print "<suspended file=\"%s\" line=\"%s\" threadId=\"%d\" frames=\"%d\"/>\n",
202
+ print "<suspended file=\"%s\" line=\"%s\" threadId=\"%d\" frames=\"%d\"/>",
201
203
  file, line, Debugger.current_context.thnum, Debugger.current_context.stack_size
202
204
  end
203
205
 
204
206
  def print_exception(exception, binding)
205
- print "<processingException type=\"%s\" message=\"%s\"/>\n",
207
+ print "<processingException type=\"%s\" message=\"%s\"/>",
206
208
  exception.class, CGI.escapeHTML(exception.to_s)
207
209
  end
208
210
 
@@ -219,6 +221,16 @@ module Debugger
219
221
  print("<loadResult file=\"%s\" status=\"OK\"/>", file)
220
222
  end
221
223
  end
224
+
225
+ def print_element(name)
226
+ print("<#{name}>")
227
+ begin
228
+ yield
229
+ ensure
230
+ print("</#{name}>")
231
+ end
232
+ end
233
+
222
234
  private
223
235
 
224
236
  def print(*params)
@@ -226,13 +238,6 @@ module Debugger
226
238
  @interface.print(*params)
227
239
  end
228
240
 
229
- def print_element(name)
230
- print("<#{name}>\n")
231
- begin
232
- yield
233
- ensure
234
- print("</#{name}>\n")
235
- end
236
- end
237
241
  end
242
+
238
243
  end
data/lib/tags CHANGED
@@ -7,6 +7,7 @@
7
7
  AddBreakpoint ruby-debug/commands/breakpoints.rb /^ class AddBreakpoint < Command # :nodoc:$/;" c class:Debugger
8
8
  BreakpointsCommand ruby-debug/commands/breakpoints.rb /^ class BreakpointsCommand < Command # :nodoc:$/;" c
9
9
  CatchCommand ruby-debug/commands/catchpoint.rb /^ class CatchCommand < Command # :nodoc:$/;" c class:Debugger
10
+ ColumnizeFunctions ruby-debug/helper.rb /^ module ColumnizeFunctions$/;" m class:Debugger
10
11
  Command ruby-debug/command.rb /^ class Command # :nodoc:$/;" c class:Debugger
11
12
  Context ruby-debug.rb /^ class Context$/;" c class:Debugger
12
13
  ContinueCommand ruby-debug/commands/stepping.rb /^ class ContinueCommand < Command # :nodoc:$/;" c
@@ -25,13 +26,14 @@ Debugger ruby-debug/commands/stepping.rb /^module Debugger$/;" m
25
26
  Debugger ruby-debug/commands/threads.rb /^module Debugger$/;" m
26
27
  Debugger ruby-debug/commands/variables.rb /^module Debugger$/;" m
27
28
  Debugger ruby-debug/event_processor.rb /^ module Debugger$/;" m
29
+ Debugger ruby-debug/helper.rb /^module Debugger$/;" m
28
30
  Debugger ruby-debug/interface.rb /^module Debugger $/;" m
29
31
  Debugger ruby-debug/processor.rb /^module Debugger$/;" m
30
32
  Debugger ruby-debug/xml_printer.rb /^module Debugger$/;" m
31
33
  DeleteBreakpointCommand ruby-debug/commands/breakpoints.rb /^ class DeleteBreakpointCommand < Command # :nodoc:$/;" c
32
34
  DownCommand ruby-debug/commands/frame.rb /^ class DownCommand < Command # :nodoc:$/;" c
33
35
  EvalCommand ruby-debug/commands/eval.rb /^ class EvalCommand < Command # :nodoc:$/;" c class:Debugger
34
- EventProcessor ruby-debug/event_processor.rb /^ class EventProcessor$/;" c class:Debugger
36
+ EventHandler ruby-debug/event_processor.rb /^ class EventHandler$/;" c class:Debugger
35
37
  Exception ruby-debug.rb /^ class Exception # :nodoc:$/;" c
36
38
  FinishCommand ruby-debug/commands/stepping.rb /^ class FinishCommand < Command # :nodoc:$/;" c
37
39
  FrameCommand ruby-debug/commands/frame.rb /^ class FrameCommand < Command # :nodoc:$/;" c
@@ -40,17 +42,17 @@ InspectCommand ruby-debug/commands/inspect.rb /^ class InspectCommand < Command
40
42
  InterruptCommand ruby-debug/commands/control.rb /^ class InterruptCommand < Command # :nodoc:$/;" c
41
43
  Kernel ruby-debug.rb /^ module Kernel$/;" m
42
44
  LoadCommand ruby-debug/commands/load.rb /^ class LoadCommand < Command $/;" c class:Debugger
43
- LocalInterface ruby-debug/interface.rb /^ class LocalInterface # :nodoc:$/;" c class:Debugger
44
45
  NextCommand ruby-debug/commands/stepping.rb /^ class NextCommand < Command # :nodoc:$/;" c class:Debugger
45
46
  PPCommand ruby-debug/commands/eval.rb /^ class PPCommand < Command # :nodoc:$/;" c
47
+ ParseFunctions ruby-debug/helper.rb /^ module ParseFunctions$/;" m class:Debugger.ColumnizeFunctions
46
48
  QuitCommand ruby-debug/commands/control.rb /^ class QuitCommand < Command # :nodoc:$/;" c class:Debugger
47
- RemoteInterface ruby-debug/interface.rb /^ class RemoteInterface # :nodoc:$/;" c
49
+ RemoteInterface ruby-debug/interface.rb /^ class RemoteInterface # :nodoc:$/;" c class:Debugger
48
50
  RestartCommand ruby-debug/commands/control.rb /^ class RestartCommand < Command # :nodoc:$/;" c
49
- ScriptInterface ruby-debug/interface.rb /^ class ScriptInterface # :nodoc:$/;" c
50
51
  StartCommand ruby-debug/commands/control.rb /^ class StartCommand < Command # :nodoc:$/;" c
51
52
  State ruby-debug/processor.rb /^ class State # :nodoc:$/;" c class:Debugger
52
53
  StepCommand ruby-debug/commands/stepping.rb /^ class StepCommand < Command # :nodoc:$/;" c
53
54
  ThreadCurrentCommand ruby-debug/commands/threads.rb /^ class ThreadCurrentCommand < Command # :nodoc:$/;" c
55
+ ThreadFunctions ruby-debug/commands/threads.rb /^ module ThreadFunctions # :nodoc:$/;" m class:Debugger
54
56
  ThreadListCommand ruby-debug/commands/threads.rb /^ class ThreadListCommand < Command # :nodoc:$/;" c class:Debugger
55
57
  ThreadResumeCommand ruby-debug/commands/threads.rb /^ class ThreadResumeCommand < Command # :nodoc:$/;" c
56
58
  ThreadStopCommand ruby-debug/commands/threads.rb /^ class ThreadStopCommand < Command # :nodoc:$/;" c
@@ -64,26 +66,19 @@ WhereCommand ruby-debug/commands/frame.rb /^ class WhereCommand < Command # :no
64
66
  XmlPrinter ruby-debug/xml_printer.rb /^ class XmlPrinter # :nodoc:$/;" c class:Debugger
65
67
  adjust_frame ruby-debug/commands/frame.rb /^ def adjust_frame(frame_pos, absolute)$/;" f class:Debugger.FrameFunctions
66
68
  at_breakpoint ruby-debug.rb /^ def at_breakpoint(breakpoint)$/;" f class:Debugger.Context
67
- at_breakpoint ruby-debug/event_processor.rb /^ def at_breakpoint(context, breakpoint)$/;" f class:Debugger.EventProcessor
69
+ at_breakpoint ruby-debug/event_processor.rb /^ def at_breakpoint(context, breakpoint)$/;" f class:Debugger
68
70
  at_catchpoint ruby-debug.rb /^ def at_catchpoint(excpt)$/;" f class:Debugger.Context
69
- at_catchpoint ruby-debug/event_processor.rb /^ def at_catchpoint(context, excpt)$/;" f class:Debugger.EventProcessor
71
+ at_catchpoint ruby-debug/event_processor.rb /^ def at_catchpoint(context, excpt)$/;" f class:Debugger
70
72
  at_line ruby-debug.rb /^ def at_line(file, line)$/;" f class:Debugger.Context
71
- at_line ruby-debug/event_processor.rb /^ def at_line(context, file, line)$/;" f class:Debugger.EventProcessor
72
- at_line? ruby-debug/event_processor.rb /^ def at_line?$/;" f class:Debugger.EventProcessor
73
+ at_line ruby-debug/event_processor.rb /^ def at_line(context, file, line)$/;" f class:Debugger
74
+ at_line? ruby-debug/event_processor.rb /^ def at_line?$/;" f class:Debugger
73
75
  at_tracing ruby-debug.rb /^ def at_tracing(file, line)$/;" f class:Debugger.Context
74
- at_tracing ruby-debug/event_processor.rb /^ def at_tracing(context, file, line)$/;" f class:Debugger.EventProcessor
76
+ at_tracing ruby-debug/event_processor.rb /^ def at_tracing(context, file, line)$/;" f class:Debugger
75
77
  binding_n ruby-debug.rb /^ def binding_n(n = 0)$/;" f class:Kernel
76
78
  clear_references ruby-debug/commands/inspect.rb /^ def self.clear_references$/;" F class:Debugger.InspectCommand
77
- close ruby-debug/interface.rb /^ def close$/;" f class:Debugger.LocalInterface
78
- close ruby-debug/interface.rb /^ def close$/;" f class:RemoteInterface
79
- close ruby-debug/interface.rb /^ def close$/;" f class:ScriptInterface
79
+ close ruby-debug/interface.rb /^ def close$/;" f class:Debugger.RemoteInterface
80
+ columnize ruby-debug/helper.rb /^ def columnize(list, displaywidth=80)$/;" f class:Debugger.ColumnizeFunctions
80
81
  commands ruby-debug/command.rb /^ def commands$/;" f class:Debugger.Command
81
- confirm ruby-debug/command.rb /^ def confirm(msg)$/;" f class:Debugger
82
- confirm ruby-debug/interface.rb /^ def confirm(prompt)$/;" f class:Debugger.LocalInterface
83
- confirm ruby-debug/interface.rb /^ def confirm(prompt)$/;" f class:RemoteInterface
84
- confirm ruby-debug/interface.rb /^ def confirm(prompt)$/;" f class:ScriptInterface
85
- confirm ruby-debug/processor.rb /^ def confirm(*args)$/;" f class:Debugger.ControlState
86
- confirm ruby-debug/processor.rb /^ def confirm(*args)$/;" f class:Debugger.State
87
82
  context ruby-debug/processor.rb /^ def context$/;" f class:Debugger.ControlState
88
83
  debug_eval ruby-debug/command.rb /^ def debug_eval(str, b = get_binding)$/;" f class:Debugger
89
84
  debug_silent_eval ruby-debug/command.rb /^ def debug_silent_eval(str)$/;" f class:Debugger
@@ -120,8 +115,8 @@ execute ruby-debug/commands/variables.rb /^ def execute$/;" f class:VarLocalC
120
115
  file ruby-debug/processor.rb /^ def file$/;" f class:Debugger.ControlState
121
116
  get_binding ruby-debug/command.rb /^ def get_binding$/;" f class:Debugger
122
117
  get_context ruby-debug/command.rb /^ def get_context(thnum)$/;" f class:Debugger
123
- get_int ruby-debug/commands/frame.rb /^ def get_int(str, cmd)$/;" f class:Debugger.FrameFunctions
124
- hbinding ruby-debug/command.rb /^ def hbinding(hash)$/;" f class:Debugger
118
+ get_int ruby-debug/helper.rb /^ def get_int(str, cmd, min=nil, max=nil, default=1)$/;" f class:Debugger.ColumnizeFunctions.ParseFunctions
119
+ get_onoff ruby-debug/helper.rb /^ def get_onoff(arg, default=nil, print_error=true)$/;" f class:Debugger.ColumnizeFunctions.ParseFunctions
125
120
  help ruby-debug/commands/breakpoints.rb /^ def help(cmd)$/;" f class:BreakpointsCommand
126
121
  help ruby-debug/commands/breakpoints.rb /^ def help(cmd)$/;" f class:Debugger.AddBreakpoint
127
122
  help ruby-debug/commands/breakpoints.rb /^ def help(cmd)$/;" f class:DeleteBreakpointCommand
@@ -178,9 +173,8 @@ help_command ruby-debug/commands/variables.rb /^ def help_command$/;" f cla
178
173
  help_command ruby-debug/commands/variables.rb /^ def help_command$/;" f class:VarLocalCommand
179
174
  inherited ruby-debug/command.rb /^ def inherited(klass)$/;" f class:Debugger.Command
180
175
  initialize ruby-debug/command.rb /^ def initialize(state, printer)$/;" f class:Debugger
181
- initialize ruby-debug/event_processor.rb /^ def initialize(interface)$/;" f class:Debugger.EventProcessor
182
- initialize ruby-debug/interface.rb /^ def initialize(file, out)$/;" f class:ScriptInterface
183
- initialize ruby-debug/interface.rb /^ def initialize(socket)$/;" f class:RemoteInterface
176
+ initialize ruby-debug/event_processor.rb /^ def initialize(interface)$/;" f class:Debugger.EventHandler
177
+ initialize ruby-debug/interface.rb /^ def initialize(socket)$/;" f class:Debugger.RemoteInterface
184
178
  initialize ruby-debug/processor.rb /^ def initialize$/;" f class:Debugger.State
185
179
  initialize ruby-debug/processor.rb /^ def initialize(interface)$/;" f class:Debugger.ControlCommandProcessor
186
180
  initialize ruby-debug/processor.rb /^ def initialize(interface, commands)$/;" f class:Debugger.ControlState
@@ -196,10 +190,9 @@ match ruby-debug/commands/eval.rb /^ def match(input)$/;" f class:Debugger.Ev
196
190
  method_missing ruby-debug/command.rb /^ def method_missing(meth, *args, &block)$/;" f class:Debugger.Command
197
191
  method_missing ruby-debug/command.rb /^ def method_missing(meth, *args, &block)$/;" f class:Debugger
198
192
  options ruby-debug/command.rb /^ def options$/;" f class:Debugger.Command
193
+ parse_thread_num ruby-debug/commands/threads.rb /^ def parse_thread_num(subcmd, arg)$/;" f class:Debugger.ThreadFunctions
199
194
  print ruby-debug/command.rb /^ def print(*args)$/;" f class:Debugger
200
- print ruby-debug/interface.rb /^ def print(*args)$/;" f class:Debugger.LocalInterface
201
- print ruby-debug/interface.rb /^ def print(*args)$/;" f class:RemoteInterface
202
- print ruby-debug/interface.rb /^ def print(*args)$/;" f class:ScriptInterface
195
+ print ruby-debug/interface.rb /^ def print(*args)$/;" f class:Debugger.RemoteInterface
203
196
  print ruby-debug/processor.rb /^ def print(*args)$/;" f class:Debugger.ControlCommandProcessor
204
197
  print ruby-debug/processor.rb /^ def print(*args)$/;" f class:Debugger.ControlState
205
198
  print ruby-debug/processor.rb /^ def print(*args)$/;" f class:Debugger.State
@@ -239,10 +232,8 @@ proceed? ruby-debug/processor.rb /^ def proceed?$/;" f class:Debugger.State
239
232
  process_commands ruby-debug/processor.rb /^ def process_commands$/;" f class:Debugger.ControlCommandProcessor
240
233
  process_context_commands ruby-debug/processor.rb /^ def process_context_commands(input)$/;" f class:Debugger.ControlCommandProcessor
241
234
  processor ruby-debug.rb /^ def processor$/;" f class:Debugger.Context
242
- read_command ruby-debug/interface.rb /^ def read_command(prompt)$/;" f class:Debugger.LocalInterface
243
- read_command ruby-debug/interface.rb /^ def read_command(prompt)$/;" f class:RemoteInterface
244
- read_command ruby-debug/interface.rb /^ def read_command(prompt)$/;" f class:ScriptInterface
245
- readline ruby-debug/interface.rb /^ def readline(prompt, hist)$/;" f class:Debugger.LocalInterface
235
+ protect ruby-debug/event_processor.rb /^ def self.protect(mname)$/;" F class:Debugger.EventHandler
236
+ read_command ruby-debug/interface.rb /^ def read_command$/;" f class:Debugger.RemoteInterface
246
237
  reference_result ruby-debug/commands/inspect.rb /^ def self.reference_result(result)$/;" F class:Debugger.InspectCommand
247
238
  regexp ruby-debug/commands/breakpoints.rb /^ def regexp$/;" f class:BreakpointsCommand
248
239
  regexp ruby-debug/commands/breakpoints.rb /^ def regexp$/;" f class:Debugger.AddBreakpoint
@@ -274,7 +265,7 @@ regexp ruby-debug/commands/variables.rb /^ def regexp$/;" f class:VarGlobalCo
274
265
  regexp ruby-debug/commands/variables.rb /^ def regexp$/;" f class:VarInstanceCommand
275
266
  regexp ruby-debug/commands/variables.rb /^ def regexp$/;" f class:VarLocalCommand
276
267
  run_prog_script ruby-debug.rb /^ def run_prog_script$/;" f class:Debugger
277
- send_command ruby-debug/interface.rb /^ def send_command(msg)$/;" f class:RemoteInterface
268
+ show_onoff ruby-debug/helper.rb /^ def show_onoff(bool)$/;" f class:Debugger.ColumnizeFunctions.ParseFunctions
278
269
  splitter ruby-debug/processor.rb /^ def splitter$/;" f class:Debugger.ControlCommandProcessor
279
270
  start_control ruby-debug.rb /^ def start_control(host, port)$/;" f class:Debugger
280
271
  timeout ruby-debug/command.rb /^ def timeout(sec)$/;" f class:Debugger
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.3
2
+ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: ruby-debug-ide
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.6
7
- date: 2007-06-18 22:50:16 +02:00
6
+ version: 0.1.7
7
+ date: 2007-07-18 15:42:59 +02:00
8
8
  summary: IDE interface for ruby-debug.
9
9
  require_paths:
10
10
  - lib
@@ -48,6 +48,7 @@ files:
48
48
  - lib/ruby-debug/commands/inspect.rb
49
49
  - lib/ruby-debug/interface.rb
50
50
  - lib/ruby-debug/printers.rb
51
+ - lib/ruby-debug/helper.rb
51
52
  - lib/ruby-debug/event_processor.rb
52
53
  - lib/tags
53
54
  - lib/ruby-debug.rb