Sha256: 43e52bcb03848d568fdb88d5894de390aacf39ee106d5e728bdf00bbbaaf6e36
Contents?: true
Size: 433 Bytes
Versions: 1
Compression:
Stored size: 433 Bytes
Contents
$: << "lib" require 'jdi_hook' vm = JdiHook.command_line_launch("HelloWorld") dbg = JdiHook::MethodTracer.new vm, :redirect_stdio => true en_proc = lambda {|this, evt| puts " [*] " << this.notify_entry(evt.method) } ex_proc = lambda {|this, evt| puts " [*] " << this.notify_exit(evt.method) } dbg.meth_hooks = { /\.main$/ => { :on_entry => en_proc, :on_exit => ex_proc }, /.*/ => { :on_entry => en_proc }, } dbg.go
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
emonti-jdi_hook-1.0.0 | samples/meth_test.rb |