【问题标题】:rdebug-ide is exploading is my rdebug-ide incantation wrong?rdebug-ide is exploading 我的 rdebug-ide 咒语错了吗?
【发布时间】:2021-06-03 01:52:05
【问题描述】:

在 ruby​​mine 中进行远程调试,我收到了这个错误……

dev$ rdebug-ide --host 0.0.0.0 --port 1234 --dispatcher-port 26162 -- bin/rails s
Fast Debugger (ruby-debug-ide 0.7.2, ruby-debug-base19x 0.11.32, file filtering is not supported) listens on 0.0.0.0:1234
Uncaught exception: cannot load such file -- /home/fonso/dev/bin/rails   <------ WHY THIS GO BOOM???
    /home/fonso/.rbenv/versions/1.9.3-p551/bin/rdebug-ide:23:in `load'
    /home/fonso/.rbenv/versions/1.9.3-p551/bin/rdebug-ide:23:in `<main>’

鉴于这个错误,我怀疑我的 rdebug 行是错误的......那个“bin/rails s”部分。

我在我的服务器上运行 rbenv,所以当我运行我的应用程序时,我必须这样做......

dev$rails s -p 4000 -b 0.0.0.0

如何修改此 rdebug 行,以免出现此错误退出?

仅供参考:我正在遵循 jetbrains 网站的指示...https://www.jetbrains.com/help/ruby/remote-debugging-with-product.html#configure_remote_interpreter

【问题讨论】:

    标签: ruby-on-rails ruby jetbrains-ide rubymine


    【解决方案1】:

    找到解决方案:

    所以原教程中的这一行是不正确的

    rdebug-ide --host 0.0.0.0 --port 4000 --dispatcher-port 26162 -- $COMMAND$
    

    因为它无法解释您应该替换的确切内容,或者您​​甚至必须替换的内容,$COMMAND$。在我自己的许多磨牙机和运行排列中,我发现了一个可行的解决方案。

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

    【讨论】:

      猜你喜欢
      • 2013-12-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多