Anthony Anthony - 4 months ago 25
Ruby Question

Debugging Resque Jobs With RubyMine without Rails

Using Rubymine, and I'm trying to debug some ruby scripts that generate jobs in redis via resque.


  • Not using Rails

  • I am using active support



The issue is I have no idea and can't google up any anything really useful directly on the this subject.

I'm not against trying something else like pry but I would love to be able to just debug these jobs from Rubymine.

Thanks in advance.

Answer

You should be able to debug in Rubymine by launching the Rake task. Go to Run -> Edit Configurations... -> + (Top right button) -> Rake and setup it up with:

  • Task name: resque:work
  • Environment variables: QUEUE=*

Save the configuration and launch it from Run -> Debug...

Comments