How to solve the RubyMine problem in Ruby-debug-ide "not installed"

I get an error message:

Cannot start debugger. Gem 'ruby-debug-ide' isn't installed or its executable script 'rdebug-ide' doesn't exist. 

but all the gems were successfully installed:

 gem 'ruby-debug-ide' gem 'debase' 

I can run 'rdebug-ide' manually:

 $ rdebug-ide Using ruby-debug-base 0.2.1 Usage: rdebug-ide is supposed to be called from RDT, NetBeans, RubyMine, or the IntelliJ IDEA Ruby plugin. The command line interface to ruby-debug is rdebug. 

But when I start debugging, RubyMine asks to install the ruby-debug-ide gem. Why?

And, after installation, I get:

 Cannot start debugger. Gem 'ruby-debug-ide' isn't installed or its executable script 'rdebug-ide' doesn't exist. 

I am running Mac OS X 10.11.3.

+21
ruby ruby-on-rails rubymine
source share
12 answers

I started getting this after upgrading from 2017.x to 2018.1. In my case, it seems that RubyMine needed a newer version, but his error message meant that he could not find any version and could not install it. I think he was trying to install it with a different SDK.

Manually installing the last --pre ruby-debugger-ide (in my case the --pre flag was needed), and then restarting RubyMine, everything --pre out.

+8
source share

Here is the actual team that worked for me:

 gem install ruby-debug-ide --pre 
+6
source share

In addition to Auchan Ellahi

In your terminal, you probably are not using the same ruby ​​version as inside Ruby Mine. You can check it out

In a ruby ​​mine

 Preferences --> Laguanges and Frameworks --> Ruby SDK and Gems 

In terminal

 $ ruby-v 

If you are not using the same version, try installing RubyMine to use the same version of Ruby as in your terminal. This should solve the problem. Then, if you really want to use another RubyVersion, you will need to go to your terminal, change the Ruby version and manually install both gems

+4
source share

I ran into this problem when debugging in docker-compose environment. I suspect that RubyMine does not update the list of available gems after adding the SDK.

So, if you add the SDK, then add ruby-debug-ide to the Gemfile , you will get an error message.

Instead (re) create an SDK after adding ruby-debug-ide .

+2
source share

You should study the RubyMine settings which ruby version and which gemset (global / default) it uses. Check where these necessary gems are installed, and make sure RubyMine uses this gemset, where they are installed successfully.

+1
source share

I fixed this after looking at the answers here: https://intellij-support.jetbrains.com/hc/en-us/community/posts/206072049-Cannot-start-debugger

The solution below suggested "remove all my gems." ruby removal. cleaning directories and rvm. removing the ruby ​​mine and then reinstalling everything

I started with the lightest of them, which was to reinstall the ruby. This solved it for me.

+1
source share

I ran into this problem also with Rubymine 8, rvm 1.29.1 and Ruby version 2.3.3. Upgrading Rubimine from Rubymine 8 to Rubymine 2016.3 or later resolves the issue for me.

0
source share

Check the ruby version of the SDK version . You can first use the rails installer to install everything.

Then use gem to install rdebug for ruby ​​2+.

Make sure that the version of Rubimine Ruby matches the version you installed. With all of these features, you can debug Ruby.

0
source share

My solution was to go to the Rubymine settings available in the SDK, uninstall the SDK, restart Rubymine, and add the SDK again.

0
source share

Please check x286 versus 64 for both Ruby and Rmine. I had this runnin x86 rubyMine problem on 64 ruby

0
source share

The combination of matching the host ide ruby ​​version with the remote SDK version worked for me, but required a few extra steps. I also use Mac OS as a host (running mohave)

  1. setting the remote environment in the settings → ruby ​​sdk and gems should have the same version as the remote target, including all installed gems.

NOTE: I had to reinstall the linker gem on both the host and the remote host in order to get the gem manager to install things automatically.

  1. The project environment must be modified to use the same version as the remote host. this is in File -> settings for new projects -> ruby ​​sdk and gems.

NOTE. I also had to set the default RVM on my local host and remote host and reset the previous default version in the local host settings.

As soon as I did this, I was able to synchronize the gems and connect the remote debugger.

0
source share

Since you are using Mac OSX, I cannot give you the exact same answer, but you can find a similar way to achieve this. I use Ubuntu with Vagrant, so you may have to adapt it a bit.

  1. Copy the following gem from the RubyMine / rb / gems application folder, please copy the gem associated with your ruby ​​runtime and platform, there are different gems for different ruby ​​runtimes and platforms, in my case it is:
    • vulgarize-0.3.0.beta7.gem
    • ruby-debugging-ida-0.8.0.beta6.gem
  2. Install them inside your application host, in my case it is a tramp, in your case it can be inside your container or in your host OS using the following command:
 gem install --force --local *.gem 
  1. Set a breakpoint and start debugging.

He may ask you to install the gem again, but then debugging will work for sure.

0
source share

All Articles