summaryrefslogtreecommitdiff
path: root/lib/debug.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-15 15:59:59 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-15 15:59:59 +0000
commite317b93409e04275605aa0082fb94340a784dc1c (patch)
treef187241c650256e77e2bf99c5ecd09c69fc20617 /lib/debug.rb
parenta3a45fafa3d7df3ea1a406847abef1b4aaa07bf1 (diff)
* lib/debug.rb: as wanabe-san pointed out,
set_trace_func should be completely final task in debug.rb. Bug #847 [ruby-core:20449] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/debug.rb')
-rw-r--r--lib/debug.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/debug.rb b/lib/debug.rb
index 77be345a07..7bb1450198 100644
--- a/lib/debug.rb
+++ b/lib/debug.rb
@@ -898,10 +898,10 @@ end
stdout.printf "Debug.rb\n"
stdout.printf "Emacs support available.\n\n"
-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
}
+set_trace_func proc { |event, file, line, id, binding, klass, *rest|
+ DEBUGGER__.context.trace_func event, file, line, id, binding, klass
+}
end