Registry / utility / debug-inspector

debug-inspector

JSON →
library1.2.0rbrubygemsunverified

Adds methods to DebugInspector to allow for inspection of backtrace frames.

gem install debug_inspector
INSTALL
IMPORT
SIG · DEBUG-INSPECTOR
D
debug-inspector
utilityrubyv1.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DebugInspector
require 'debug_inspector'

Inspect backtrace frames

require 'debug_inspector' # Inspect the current backtrace RubyVM::DebugInspector.open do |inspector| frame_binding = inspector.frame_binding(0) puts frame_binding.eval('self') end
Debug
Known issues
breakingOnly works on MRI 2 and 3; unsupported Ruby versions result in a no-op.
fix
Ensure you are using MRI 2.0.0 or later.
affects: < 2.0.0
Upgrade
Version history
1.2.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
debug-inspector — gem install debug-inspector · libregistry