Created
February 5, 2025 14:11
-
-
Save rahim/d86d112f84736267e0cca3bdae75c09e to your computer and use it in GitHub Desktop.
Ruby: trace all method calls...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trace = TracePoint.new(:call) do |tp| | |
puts "#{Time.now.iso8601} Called: #{tp.defined_class}##{tp.method_id} at #{tp.path}:#{tp.lineno}" | |
end | |
trace.enable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment