Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make pry-byebug more extendable #313

Open
zenspider opened this issue Aug 13, 2020 · 0 comments
Open

Make pry-byebug more extendable #313

zenspider opened this issue Aug 13, 2020 · 0 comments

Comments

@zenspider
Copy link

https://gist.github.com/zenspider/8049ee1bc6b994e2098508d278183dbc

The first paragraph of the above linked code extends Byebug::PryProcessor#perform to be extendable... namely it extracts the list of valid names to a constant and tests for inclusion there. That way plugins can add to that and use pry-byebug mechanisms.

The rest of the code adds a new command bt that prints a backtrace w/o ruby or gems paths as an example. You're welcome to any/all of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant