Project

stackdo

0.0
No commit activity in last 3 years
No release in over 3 years
A library for getting detailed stacktraces (with variables).
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.7.2, ~> 0.7.2
 Project Readme

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