Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pause on debug #12

Open
timscott opened this issue Jun 5, 2014 · 5 comments
Open

Pause on debug #12

timscott opened this issue Jun 5, 2014 · 5 comments

Comments

@timscott
Copy link

timscott commented Jun 5, 2014

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.

@moxley
Copy link
Owner

moxley commented Jun 7, 2014

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.

@rubydubee
Copy link

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

@moxley
Copy link
Owner

moxley commented Jan 14, 2015

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.

@brian-vogogo
Copy link

The echo continue | workaround works for pry as well.

@calebhaye
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants