title: Remote debugging Rails application using RubyMine
body: <p>I'm following the instructions listed in the 
  <a href="https://www.jetbrains.com/help/ruby/remote-debugging.html" rel="nofollow noreferrer">Remote debugging article published by JetBrains</a> to debug a remote Rails application using RubyMine. </p>
  
  <p>Based on the instructions, I'm supposed to run </p>
  
  <pre><code>rdebug-ide --port 1236 --dispatcher-port 26166 --host 0.0.0.0 ? bin/rails s -b 0.0.0.0
  </code></pre>
  
  <p>on the remote host. Running the above command throws the following error message stating that option -b is invalid.</p>
  
  <pre><code>-bash-4.1$ rdebug-ide --port 1236 --dispatcher-port 26166 --host 0.0.0.0  bin/rails s -b 0.0.0.0 
      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.
  
          Options:
              -h, --host HOST                  Host name used for remote 
  
  debugging
          -p, --port PORT                  Port used for remote debugging
              --dispatcher-port PORT       Port used for multi-process debugging dispatcher
              --evaluation-timeout TIMEOUT evaluation timeout in seconds (default: 10)
              --stop                       stop when the script is loaded
          -x, --trace                      turn on line tracing
          -l, --load-mode                  load mode (experimental)
          -d, --debug                      Debug self - prints information for debugging ruby-debug itself
              --xml-debug                  Debug self - sends information &lt;message&gt;s for debugging ruby-debug itself
          -I, --include PATH               Add PATH to $LOAD_PATH
              --attach-mode                Tells that rdebug-ide is working in attach mode
              --keep-frame-binding         Keep frame bindings
              --disable-int-handler        Disables interrupt signal handler
              --rubymine-protocol-extensions
                                           Enable all RubyMine-specific incompatible protocol extensions
              --catchpoint-deleted-event   Enable chatchpointDeleted event
              --value-as-nested-element    Allow to pass variable's value as nested element instead of attribute
  
      Common options:
          -v, --version                    Show version
  
      invalid option: -b
  </code></pre>
  
  <ul>
  <li>RubyMine version 2017.1 </li>
  <li>Remote Host OS: Centos-6.9 </li>
  <li>Ruby version: 2.3.1p112</li>
  </ul>
  
  <p>Could you please help me to understand what's going wrong? Thank you.</p>