how to start the debugger on a VM ?

My current project code is stored on a Ubuntu VM. When I try to start the debugger to work on the code it simply stops. No errors, no nothing..
I tried many stuff but the only way I got the debugger running was with the code on my personal machine and the ruby gems needed.

This is the console output when I try to start it up:

/Users/renato/.gem/ruby/1.8/bin/rdebug-ide --port 58527 -- /Volumes/dev/vamp-ui/script/server -p 3000 -b 0.0.0.0 -e development

=> Booting Mongrel
=> Rails 2.3.6 application starting on http://0.0.0.0:3000



and nothing else happens.. Any ideas please? Is it possible? Am I doing something really wrong? :)
4 comments
Comment actions Permalink

Hello Renato,

For such purposes you need remote debug functionality which is described here: http://blogs.jetbrains.com/ruby/2009/05/ruby-remote-debug/


Best regards,
Oleg

0
Comment actions Permalink

thanks for the help! ;)

0
Comment actions Permalink

just some considerations..

I couldn't make it debug the application itself.. it needs the $SCRIPT$ param.. and when I pass the app folder, it says "Uncaught exception: no such file to load -- /root/vamp-ui/"

also.. I had a problem to connect the remote debug tool on my server.. I ran the rdebug-ide command to work on port 1234.. fine.. when I launched the config on rubymine, it couldn't connect to it.. The only way I could do this is creating a tunnel to my server.. pointing port 1234 on my localhost to 1234 on the server.. (this is not a firewall issue because i'm not running a firewall on my server)

so if I'm doing something wrong again.. I'd like some help because the blog post is to vague :)

0
Comment actions Permalink

just some considerations..

I couldn't make it debug the application itself.. it needs the $SCRIPT$ param.. and when I pass the app folder, it says "Uncaught exception: no such file to load -- /root/vamp-ui/"

also.. I had a problem to connect the remote debug tool on my server.. I ran the rdebug-ide command to work on port 1234.. fine.. when I launched the config on rubymine, it couldn't connect to it.. The only way I could do this is creating a tunnel to my server.. pointing port 1234 on my localhost to 1234 on the server.. (this is not a firewall issue because i'm not running a firewall on my server)

so if I'm doing something wrong again.. I'd like some help because the blog post is to vague :)

Renato, RubyMine uses ruby-debug-ide gem to provide debugging facilities. Ruby-debug-ide has a client-server architecture. When you launch ordinary debug session it launches debug server on the local machine, the only difference with remote debug is that you launches debug server manually and remotely.

rdebug-ide --port ${PORT} -- script ${SCRIPT}
This command launches server using given port and executing given script. Please ensure that you have ruby-debug-ide gem installed on the server machine.

Regards,
Oleg

0

Please sign in to leave a comment.