Sha256: e5dfb72878de3bf2a764006e116798ad1d8e44059a0b39a8a1c165fd738ba22b
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
# StackTrace Creates call stack trace for given block of Ruby code. ## Installation Install the gem and add to the application's Gemfile by executing: $ bundle add stack_trace If bundler is not being used to manage dependencies, install the gem by executing: $ gem install stack_trace ## Usage ```ruby StackTrace.trace do Foo.bar end StackTrace.current # => Returns a Hash that contains all the method calls and exception information. ``` ## Configuration ```ruby StackTrace.configure do |config| config.trace_ruby = true config.trace_c = true config.inspect_return_values = true # Default `false` for performance reasons config.inspect_arguments = true # Default `false` for performance reasons config.check_proc = -> (self_klass_name, defined_klass_name, method_name) do # If you want to limit the tracing for a set of classes self_klass_name == "Bar" # If you use autoload and resolve the constant by klass names # it's really likelly that you get a segfault: https://bugs.ruby-lang.org/issues/18120. # Preload all the constants before running the `StackTrace.trace` if you want to # constantize klass names. end end ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stack_trace-0.8.0 | README.md |