You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mo Morsi edited this page Jan 11, 2013
·
2 revisions
Debugging Conductor
_I recently was trying to track down an issue that jclift was seeing in
his environment, and really wanted to see what was going on line by
line.
And really didn’t want to add a million print statements only to have to
figure out which of the seven log files I need to monitor to see the
output.
Enter ruby-debug. First though, I had to be able to run the processes in
the foreground and not as services.
Preamble
yum install rubygem-ruby-debug -y
add “gem ruby-debug” to the default section of /usr/share/aeolus-conductor/Gemfile.in
Now, if you add the word “debugger” (which adds a breakpoint for rdebug)
to any ruby file under /usr/share/aeolus-conductor/app, you should hit
the breakpoint in either conductor or delayed_job. Now you can do all
the fancy debugging that you like.