Debug resque jobs in rubymine and remote debug ...

Hello anyone!
I am developing background jobs for resque gem.
resque gem :  https://github.com/defunkt/resque

It start with command:
RESQUE_WORKER=true resque-pool  --environment production VERBOSE=true

or

RESQUE_WORKER=true  rake resque:work  --environment production VERBOSE=true


Q1: How I can  run command inside rubymine (I use ruby plugin from IDEA)  in DEBUG mode ?

Q2: How I can run remote debug at remote server ?

My workers starts in itself context without Rails 3.2 context.

Thanks in advance.

Please sign in to leave a comment.