Can I stop on breakpoints from Rails Console?

I can't seem to find the answer to this question anywhere. The documentation seems to imply that debugging from Rails Console is possible. And I'm running Rails Console in the Debug window. But when I execute statements there, the breakpoints don't suspend execution. Can someone tell me whether this should be possible and how to do it? And if it's not possible, a definitive statement to that effect somewhere in the documentation would be ideal.

Thanks

4 comments

In particular, this quote from the marketing page implies that it's possible:

New Debugging Options

Run IRB/Rails Console in debug mode with IRB/Rails Console Debug.


from http://www.jetbrains.com/ruby/whatsnew/index.html

0

There is a help topic for this - http://www.jetbrains.com/ruby/webhelp/debugging-in-console.html

Let me know if it won't help.

Regards, Oleg.

0

I suspect that many share the same use case as I do:
I setup my breakpoints in Rubymine and use a debug configuration to run my app and have it stop at those breakpoints.
At this point when I explore the state of my application I can use the Watches panel.
If i want to do anything more advance(like change the state of my variables, id prefer to be able to jump into IRB when I stop at a breakpoint.
Same ways command line ruby debugger does at 'debugger' statements.

So far i wasnt able to find a way to do this in Rubymine.
The instructions you linked to tell me how to launch IRB or Rails console as a standalone environment, but I need it launched within the existing and already running environment.

0

The functionality you are requesting is not implemented yet, we have request for this http://youtrack.jetbrains.com/issue/RUBY-11321 which is not very popular though (just 3 votes).
From the other hand you can modify state using evaluate window perhaps it is not an ideal solution but for me it would be interesting to understand why IRB is better than evaluation window
(except you used to use it).

Regards, Oleg.

0

Please sign in to leave a comment.