Skip to content

Instantly share code, notes, and snippets.

@lune-sta
Created July 26, 2014 09:20
Show Gist options
  • Select an option

  • Save lune-sta/202db527c642c02a3d93 to your computer and use it in GitHub Desktop.

Select an option

Save lune-sta/202db527c642c02a3d93 to your computer and use it in GitHub Desktop.
set_trace_func lambda {|*arg|
p arg
}
p "こころぴょんぴょん!"
@lune-sta

Copy link
Copy Markdown
Author

["c-return", "hook.rb", 1, :set_trace_func, #Binding:0x007fac4991aad0, Kernel]
["line", "hook.rb", 5, nil, #Binding:0x007fac4991a7b0, nil]
["c-call", "hook.rb", 5, :p, #Binding:0x007fac4991a558, Kernel]
["c-call", "hook.rb", 5, :hash, #Binding:0x007fac4991a2d8, Kernel]
["c-return", "hook.rb", 5, :hash, #Binding:0x007fac4991a080, Kernel]
["c-call", "hook.rb", 5, :inspect, #Binding:0x007fac49919e28, String]
["c-return", "hook.rb", 5, :inspect, #Binding:0x007fac49919b80, String]
"こころぴょんぴょん!"
["c-return", "hook.rb", 5, :p, #Binding:0x007fac49919900, Kernel]
["c-return", "-e", 1, :load, #Binding:0x007fac499196a8, Kernel]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment