Right now, when I want a breakpoint in vim or Sublime Text, I drop a line like the following into the code:
binding.pry if Rails.env.test?
Pry (and its associated plugins) provide a nice environment in which to do interactive Ruby debugging from the command line.
However, adding actual code to my projects to create each breakpoint (and remembering to remove such code when I make commits) can be cumbersome.
I love what vim-ruby-debugger does in terms of dropping a visual breakpoint into the editor without actually modifying my project's source code, but I've had some trouble getting this to function in the context of my specs (and I'd really prefer to just use Pry 'breakpoints' in the first place).
So the question is, is it possible to drop a binding.pry reference into a file such that an editor like Vim (or Sublime Text, etc.) will pick it up and respond appropriately at debug-time without the line actually be included in the source code?