atom-ruby-test
atom-ruby-test copied to clipboard
Pause on debug
In ruby test for Sublime Text, test runs jump over debug or byebug statements and finish execution. In Atom, the code stops (I have verified this behavior for byebug only).
I cannot find a way to resume. Of course the best would be if there were a way to actually step through code from Atom, but failing that, ruby test runs should not freeze on these statements.
UPDATE: Indeed when ruby-test stops on a byebug statement, there's no apparent way to kill it without closing Atom.
With the latest update, which unbuffers the output, I can at least see the debug prompt (using binding.pry). The next step is to accept user input for the debugger.
+1 for this, I love this package, adding debugging support would make it more amazing :)
For pry-byebug at least, you can prefix the test command with echo continue |.

With some research, there is likely to be a way bypass most debuggers.
The echo continue | workaround works for pry as well.
There's another way. I use https://github.com/Mon-Ouie/pry-remote. That alone would work if you want to jump to a terminal to finish the pry session.
I elect to use the https://github.com/webBoxio/atom-term2 package for atom, then I can pry debug without leaving atom :)