RubyMine 7远程调试没有这样的文件或目录错误

问题描述 投票:1回答:1

我正在尝试使用RubyMine调试无业游民的机器上的Rails应用。我通过设置来设置远程红宝石SDK。我安装了必要的gem进行调试(ruby-debug-base,ruby-debug-ide)。尝试启动调试器时,它将在调试器控制台上提供以下输出:

/<remote_path_to_ruby>/bin/ruby -e 'at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)' /<remote_path>/gems/ruby-debug-ide-0.4.29/bin/rdebug-ide --disable-int-handler --evaluation-timeout 10 --rubymine-protocol-extensions --port 33401 --dispatcher-port 52861 -- /<local_path>/railsapp/script/rails server -b 127.0.0.1 -p 3000 -e development
    bash: line 0: cd: /<local_path>/railsapp: No such file or directory
    /<local_path>/railsapp/Gemfile not found

是从无所事事的机器走的路径,是我的主机它内部有railsapp目录和Gemfile。

有什么想法吗?谢谢

ruby-on-rails ruby vagrant remote-debugging rubymine
1个回答
0
投票

我想出了问题。您需要为本地项目根目录->远程项目根目录添加映射。您可以在调试配置中添加它。它为我解决了问题。

© www.soinside.com 2019 - 2024. All rights reserved.