This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
4 Replies Last post: Feb 21, 2013 12:38 PM by Oleg Sukhodolsky  
Eben Geer Newbie 2 posts since
Jan 30, 2013
Currently Being Moderated

Jan 30, 2013 4:42 AM

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

Oleg Sukhodolsky JetBrains 407 posts since
Apr 4, 2012
Currently Being Moderated
Jan 30, 2013 9:37 AM in response to: Eben Geer
Re: Can I stop on breakpoints from Rails Console?

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.

Vlad Gurovich Newbie 1 posts since
Feb 21, 2013
Currently Being Moderated
Feb 21, 2013 6:13 AM in response to: Oleg Sukhodolsky
Re: Can I stop on breakpoints from Rails Console?

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.

Oleg Sukhodolsky JetBrains 407 posts since
Apr 4, 2012
Currently Being Moderated
Feb 21, 2013 12:38 PM in response to: Vlad Gurovich
Re: Can I stop on breakpoints from Rails Console?

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.

More Like This

  • Retrieving data ...