Run Single Model Function

My usual workflow is that I write my particular Rails model functions, drop down to script/console and execute them from there (
e.g. SmsEmailProcessor.process_queue ).  This usually involves me using a lot of debugging/logger statements, etc.


Is there a way in RubyMine to debug/step through/execute a single model function?

1 comment
Comment actions Permalink

Hello Jim,

RubyMine doesn't allow to debug irb/rails console. I've filed an issue - http://www.jetbrains.net/jira/browse/RUBY-4982. Thank you for an idea.

As a workaround you can manually setup Ruby Script run configuration(Run | Edit Configurations) for ./scripts/console script and then you can launch it in debug mode. But in such case RubyMine will not provide the same support as for "Tools | Run Rails Console..." or "Tools | Run Irb Console.."

0

Please sign in to leave a comment.