mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
a3a45fafa3
commit
e317b93409
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Fri Jan 16 00:57:34 2009 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* lib/debug.rb: as wanabe-san pointed out,
|
||||||
|
set_trace_func should be completely final task in debug.rb.
|
||||||
|
Bug #847 [ruby-core:20449]
|
||||||
|
|
||||||
Fri Jan 16 00:27:03 2009 Koichi Sasada <ko1@atdot.net>
|
Fri Jan 16 00:27:03 2009 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* vm.c (rb_vm_inc_const_missing_count, ruby_vm_const_missing_count):
|
* vm.c (rb_vm_inc_const_missing_count, ruby_vm_const_missing_count):
|
||||||
|
|
|
@ -898,10 +898,10 @@ end
|
||||||
|
|
||||||
stdout.printf "Debug.rb\n"
|
stdout.printf "Debug.rb\n"
|
||||||
stdout.printf "Emacs support available.\n\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 = {
|
RubyVM::InstructionSequence.compile_option = {
|
||||||
trace_instruction: true
|
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
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue