2017-05-23 53 views
0

RubyMineを使用してリモートRailsアプリケーションをデバッグするには、 Remote debugging article published by JetBrainsに記載されている手順に従っています。RubyMineを使用したリモートデバッグRailsアプリケーション

指示に基づいて、私は、リモートホスト上で

rdebug-ide --port 1236 --dispatcher-port 26166 --host 0.0.0.0 ? bin/rails s -b 0.0.0.0 

を実行するようになっています。上記のコマンドを実行すると、-bオプションが無効であることを示す次のエラーメッセージがスローされます。

-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 <message>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 
  • ルビーマインバージョン2017.1
  • リモートホストOS:CentOSに-6.9
  • Rubyのバージョン:2.3.1p112

はあなたが間違って起こっているのかを理解するために私を助けていただけますか?ありがとうございました。

答えて

2

使用しているコマンドが正しくないようです。

rdebug-ide --port 1236 --dispatcher-port 26166 --host 0.0.0.0 -- bin/rails s -b 0.0.0.0 

ビン/レールの前にダブルダッシュがありません。

エラーは、bオプションがrdebug-ideコマンドに無効であると言います。ただし、bオプションはbin/rails sコマンドを対象としています。

+0

ダッシュでも機能しません。同じエラー "無効なオプション:-b"。 – user2492286

+0

申し訳ありません - ダブルダッシュ(回答更新) –

+0

ダブルダッシュで試しました。現在のディレクトリにローカルデバッガが接続して失敗したときにファイルをロードしようとしています。 -bash-4.1 $ rdebug-ide --port 1236 --dispatcher-port 26166 --host 0.0.0.0? - bin/rails s -b 0.0.0.0 高速デバッガ(ruby-debug-ide 0.6.1.beta4、debase 0.2.1、ファイルフィルタリングがサポートされています)0.0.0.0:1236をリッスンします キャッチされない例外:ファイル - ご希望のことを教えてください。私がレールに慣れていないので、私の無知を許してください。ありがとうございました。 – user2492286

関連する問題