Issue #847 has been updated by _ wanabe.


I suppose that set_trace_func should be completely final task in debug.rb.
How about this?

Index: lib/debug.rb
===================================================================
--- lib/debug.rb        (revision 21058)
+++ lib/debug.rb        (working copy)
@@ -898,10 +898,10 @@
 
 stdout.printf "Debug.rb\n"
 stdout.printf "Emacs support available.\n\n"
+RubyVM::InstructionSequence.compile_option = {
+  trace_instruction: true
+}
 set_trace_func proc { |event, file, line, id, binding, klass, *rest|
   DEBUGGER__.context.trace_func event, file, line, id, binding, klass
 }
-RubyVM::InstructionSequence.compile_option = {
-  trace_instruction: true
-}
 end
----------------------------------------
http://redmine.ruby-lang.org/issues/show/847

----------------------------------------
http://redmine.ruby-lang.org