Skip to content
Advertisement

Tag: pry

`binding.pry` for javascript console?

In Ruby, I can type binding.pry anywhere in my code and at that point of execution my console will enter a REPL where I have access to all local variables, can make changes, and execute any arbitrary code. Example: When I run it: This is an incredible tool in debugging, especially for situations that require a complicated setup: I can

Advertisement