Skip to content

dylanmckay/stackdo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stackdo

Build Status Gem Version MIT licensed

Get stacktraces and the variables within.

Example

require_relative '../lib/stackdo'

stack = Stackdo::CallStack.from_here

stack.walk do |frame|
  puts frame.location
  puts frame.method_reference

  frame.environment.variables.each do |variable|
    puts "#{variable.name} = #{variable.value || 'nil'}"
  end

  puts
end

About

Backtrace retrieval for Ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages