Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Even though this question duplicates two other questions here, I'll answer it for the sake of completeness.</p> <p>In order to debug from RubyMine you must use only 2 debug gems:</p> <ul> <li><code>ruby-debug-base19x</code></li> <li><code>ruby-debug-ide</code></li> </ul> <p>Exactly these gems must be used, <strong>not</strong> <code>ruby-debug-base19</code>, <strong>not</strong> <code>ruby-debug19</code>, <strong>not</strong> <code>debugger</code> . All the other debug gems must be uninstalled and removed from the <code>Gemfile</code>.</p> <p><a href="https://stackoverflow.com/a/10325110/104891">See this answer</a> for the details how to install proper debug gem versions. If you have a problem downloading <code>linecache19-0.5.13.gem</code> gem, try <a href="ftp://ftp.intellij.net/pub/.idea/rubymine/linecache19-0.5.13.gem" rel="nofollow noreferrer">this mirror</a> instead.</p> <p>Verify with <code>gem list</code> that you have the following or more recent versions installed:</p> <pre><code>ruby-debug-base19x (0.11.30.pre10) ruby-debug-ide (0.4.17.beta9) </code></pre> <p>No other debug gems should be listed by this command.</p> <hr> <p>As <a href="https://stackoverflow.com/a/11674999/104891">stated in another answer</a>, <code>debugger</code> gem must not be used, it will conflict with the debug gems used by RubyMine and debugger will not work. You must uninstall this gem, remove it from the <code>Gemfile</code> and ensure that your code doesn't call any methods from this gem and is not trying to load it.</p> <p>Happy debugging!</p> <hr> <p>As suggested by @Anjan, your <code>Gemfile</code> for debugging can look like this:</p> <pre><code>gem 'linecache19', '&gt;= 0.5.13', :git =&gt; 'https://github.com/robmathews/linecache19-0.5.13.git' gem 'ruby-debug-base19x', '&gt;= 0.11.30.pre10' gem 'ruby-debug-ide', '&gt;= 0.4.17.beta14'` </code></pre> <p>Just run <code>bundle install</code> to get the proper versions of the required debug gems.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload