unroller 0.0.20 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/unroller.rb +18 -6
- metadata +2 -2
data/lib/unroller.rb
CHANGED
@@ -379,15 +379,27 @@ class Unroller
|
|
379
379
|
if @interactive && !(@last_call == current_call)
|
380
380
|
#(print '(o = Step out of | s = Skip = Step over | default = Step into > '; response = $stdin.gets) if @interactive
|
381
381
|
|
382
|
-
|
383
|
-
"
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
382
|
+
while response.nil? do
|
383
|
+
print "Debugger (" +
|
384
|
+
"Step out".menu_item(:red, 'u') + ' | ' +
|
385
|
+
"Step over (or Enter key)".menu_item(:cyan, 'v') + ' | ' +
|
386
|
+
"Step into (Space or any key)".menu_item(:green, 'i') + ' | ' +
|
387
|
+
"show Locals".menu_item(:yellow, 'l') + ' | ' +
|
388
|
+
"Run".menu_item(:blue) +
|
389
|
+
') > '
|
390
|
+
response = $stdin.getc.chr.downcase
|
391
|
+
|
392
|
+
case response
|
393
|
+
when 'l'
|
394
|
+
do_show_locals if show_locals
|
395
|
+
response = nil
|
396
|
+
end
|
397
|
+
end
|
388
398
|
end
|
389
399
|
if response
|
390
400
|
case response
|
401
|
+
when 'r' # Run
|
402
|
+
@interactive = false
|
391
403
|
when 'u' # Step out
|
392
404
|
@silent_until_return_to_this_depth = @internal_depth - 1
|
393
405
|
when 'v', "\n" # Step over = Ignore anything with a greater depth.
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: unroller
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0.
|
7
|
-
date: 2007-06-
|
6
|
+
version: 0.0.21
|
7
|
+
date: 2007-06-06 00:00:00 -07:00
|
8
8
|
summary: "Ruby Code Unroller: A tool for generating human-readable \"execution traces\""
|
9
9
|
require_paths:
|
10
10
|
- lib
|