
Security News
Rspack Introduces Rslint, a TypeScript-First Linter Written in Go
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
Walk the stack in a Pry session
Pry::StackExplorer is a plugin for Pry that allows navigating the call stack.
From the point a Pry session is started, the user can move up the stack through parent frames, examine state, and even evaluate code.
Unlike ruby-debug
, pry-stack_explorer incurs no runtime cost and
enables navigation right up the call-stack to the birth of the
program.
The up
, down
, frame
and stack
commands are provided. See
Pry's in-session help for more information on any of these commands.
Provides commands available in Pry sessions.
Commands:
up
/down
- Move up or down the call stackframe [n]
- Go to frame nstack
- Show call stackIn Gemfile:
gem 'pry-stack_explorer', '~> 0.6.0'
gem install pry-stack_explorer
0-4
– end-of-life in March 2021)Here we run the following ruby script:
require 'pry-stack_explorer'
def alpha
x = "hello"
beta
puts x
end
def beta
binding.pry
end
alpha
We wander around the stack a little bit, and modify the state of a frame above the one we binding.pry
'd at.
Output from above is Goodbye
as we changed the x
local inside the alpha
(caller) stack frame.
Released under the MIT License by John Mair (banisterfiend) and contributors
Contributions to this gem are released under the same license.
FAQs
Unknown package
We found that pry-stack_explorer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.