3 ms·
Unfortunately using pry-nav with pry has some limitations that ruby-debug doesn't: 1. It doesn't seem to work in some cases (like putting binding.pry in a Proc.
by snapvolumes 15y ago
Unfortunately using pry-nav with pry has some limitations that ruby-debug doesn't:
1. It doesn't seem to work in some cases (like putting binding.pry in a Proc.new { ... }
2. On Windows, binding.pry works when directly embedded in a ruby script, but when put into code such as a Rails controller or model then several things don't work properly ('whereami' will show it doesn't have context.. though this works fine on Linux)
For these reasons, I still find ruby-debug better for actual debugging (when step/next are necessary) and pry better for inspecting state at a particular moment in time (but I can just call pry from the ruby-debug in that case)
- banister 15y agoI've never encountered those limitations, but since you have could you file an issue on the pry-nav repo? (https://github.com/nixme/pry-nav https://github.com/nixme/pry-nav). Remember, pry and pry-nav are new projects, and bugs can usually be fixed. And the sooner you file an issue, the sooner the bug can be fixed :)