【发布时间】:2017-05-23 23:51:33
【问题描述】:
我正在按照 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
- RubyMine 2017.1 版
- 远程主机操作系统:Centos-6.9
- Ruby 版本:2.3.1p112
您能帮我了解一下出了什么问题吗?谢谢。
【问题讨论】:
标签: ruby-on-rails ruby rubymine