lib/bauxite/actions/debug.rb in bauxite-0.6.0 vs lib/bauxite/actions/debug.rb in bauxite-0.6.1
- old
+ new
@@ -39,24 +39,22 @@
end
end
end
private
- @@debug_line = 0
def _debug_process
Readline.completion_append_character = " "
Readline.completer_word_break_characters = ""
Readline.completion_proc = lambda { |str| _debug_auto_complete(str) }
while line = _debug_get_line
next if not line or line == ''
break if line == 'exit'
begin
- @ctx.exec_action(line, true, '<debug>', @@debug_line)
+ @ctx.exec_action(line)
rescue StandardError => e
- @ctx.print_error(e)
+ @ctx.print_error(e, false)
end
- @@debug_line += 1
end
end
def _debug_get_line
line = Readline.readline(@ctx.logger.debug_prompt, true)