Is there a way to manually specify RUBYMINE_DEBUG_PORT when using remote debugging?

Completed

Is there a way to manually specify RUBYMINE_DEBUG_PORT when using remote debugging (Run -> Debug 'Trinidad')? In my local dev environment, I use Vagrant and VirtualBox, with RubyMine set up to use remote-rvm. It looks like RubyMine uses a random port every time I try to debug, which is problematic because I need to forward the correct ports in my Vagrantfile. I've tried setting RUBYMINE_DEBUG_PORT as an environment variable in the Run Configuration, but it doesn't look like RubyMine honors this value.

 

Thanks in advance!

0
2 comments

Hello, Perry,

sorry for the delay. Do you want to configure port on the remote host? In this case it can be done using '--port' parameter (while running rdebug-ide command on the remote machine), this port also needs to be specified in the Run configuration as Remote port. Please take a look at the following guide:

https://confluence.jetbrains.com/display/RUBYDEV/How+to+setup+and+run+ruby+remote+debug+session

0
Avatar
Permanently deleted user

My issue was addressed by https://youtrack.jetbrains.com/issue/RUBY-18038. Thanks!

0

Please sign in to leave a comment.