Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve a RubyMine "'ruby-debug-ide' isn't installed" error

I get the error:

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

but all gems were successfuly 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'm running Mac OS X 10.11.3.

like image 311
WWTLF Avatar asked Mar 09 '16 19:03

WWTLF


People also ask

How do I debug in RubyMine?

General debugging procedure (Optional) Configure the debugger settings in the Settings/Preferences | Build, Execution, Deployment | Debugger page. If necessary, create or modify an existing run/debug configuration. Place breakpoints in your code. Start the debugger session.

What is Ruby debug IDE?

The 'ruby-debug-ide' gem provides the protocol to establish communication between the debugger engine (such as debase or ruby-debug-base) and IDEs (for example, RubyMine, Visual Studio Code, or Eclipse).

How do I debug a Ruby application?

To help deal with bugs, the standard distribution of Ruby includes a debugger. In order to start the Ruby debugger, load the debug library using the command-line option -r debug. The debugger stops before the first line of executable code and asks for the input of user commands.

How do I debug a code in Visual Studio Ruby?

Go to the debugger view of VS Code and hit the gear icon. Choose Ruby or Ruby Debugger from the prompt window, then you'll get the sample launch config in . vscode/launch.


1 Answers

Here's the actual command that worked for me:

gem install ruby-debug-ide --pre 
like image 186
Hollie B. Avatar answered Sep 20 '22 00:09

Hollie B.