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

debug a console command #121

Closed
cooledge opened this issue Feb 12, 2015 · 3 comments
Closed

debug a console command #121

cooledge opened this issue Feb 12, 2015 · 3 comments

Comments

@cooledge
Copy link

When I am debugging code, sometimes I want to type a ruby expression and have the debugger run on that command so I can see what is happening inside. For this case what I do now is stop the debugger and add the line into the source with a breakpoint in front of it and then rerun my tests. It would be cool if I could have a command like "debug " which would run and act as if a breakpoint was set on it.

@deivid-rodriguez
Copy link
Owner

Thanks @cooledge, I'll think about this.

@akostadinov
Copy link

+1 here, it's very useful to use sub-debuggers. Especially when used in the pry-byebug combo. At the moment I'm mostly using pry and only sometimes byebug when debugging commands are important.

@deivid-rodriguez
Copy link
Owner

Just pushed a fixed to this. Not providing a new command, but just making it work by default.

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

No branches or pull requests

3 participants