Skip to content

Instantly share code, notes, and snippets.

@y-yagi
Last active August 29, 2015 14:10
Show Gist options
  • Save y-yagi/6962c53da74355226e7c to your computer and use it in GitHub Desktop.
Save y-yagi/6962c53da74355226e7c to your computer and use it in GitHub Desktop.
warnメッセージを出力している箇所を調べる
trace = TracePoint.new(:c_call) do |tp|
if tp.method_id == :warn
print tp.binding.eval('caller_locations').join("\n")
end
end
trace.enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment