Thanks for writing this detailed article on the debug gem. I've been using pry-byebug so far, and seems like debug has all of its features and much more!
The only thing I couldn't find is how to see the current source code where the execution is paused right now, which is useful after clearing the terminal.
I know the list command shows the code, but if I type it again, it shows the next few lines, and I can't figure out how to go back. In pry-byebug I'd type whereami or @ to show the code.
Do you know the command to display the source code where the execution is paused? Thanks!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for writing this detailed article on the
debug
gem. I've been usingpry-byebug
so far, and seems likedebug
has all of its features and much more!The only thing I couldn't find is how to see the current source code where the execution is paused right now, which is useful after clearing the terminal.
I know the
list
command shows the code, but if I type it again, it shows the next few lines, and I can't figure out how to go back. Inpry-byebug
I'd typewhereami
or@
to show the code.Do you know the command to display the source code where the execution is paused? Thanks!