atom-ruby-test icon indicating copy to clipboard operation
atom-ruby-test copied to clipboard

Pause on debug

Open timscott opened this issue 11 years ago • 5 comments
trafficstars

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.

timscott avatar Jun 05 '14 16:06 timscott

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.

moxley avatar Jun 07 '14 00:06 moxley

+1 for this, I love this package, adding debugging support would make it more amazing :)

rubydubee avatar Jan 13 '15 01:01 rubydubee

For pry-byebug at least, you can prefix the test command with echo continue |.

debug-continue

With some research, there is likely to be a way bypass most debuggers.

moxley avatar Jan 14 '15 04:01 moxley

The echo continue | workaround works for pry as well.

brian-vogogo avatar Jun 26 '15 22:06 brian-vogogo

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 :)

calebhaye avatar Jul 20 '15 22:07 calebhaye