亮点:
config.vm.network "forwarded_port", guest: 1234, host: 12340
问题:
我尝试在this guide之后设置远程ruby调试并在IDE中出错:" 无法找到进程调度程序的空闲套接字端口&# 34 ;.看起来这个问题是not IntelliJ-specific,我也能用最新的RubyMine重现它。
来自IDEA的日志
2017-07-07 21:53:03,515 [8879188] INFO - tion.impl.ExecutionManagerImpl - Failed to find free socket port for process dispatcher
com.intellij.execution.ExecutionException: Failed to find free socket port for process dispatcher
at org.jetbrains.plugins.ruby.ruby.debugger.RubyProcessDispatcher.<init>(RubyProcessDispatcher.java:46)
at org.jetbrains.plugins.ruby.ruby.debugger.RubyRemoteDebugRunner.doExecute(RubyRemoteDebugRunner.java:62)
...
Caused by: java.net.BindException: Address already in use: JVM_Bind
at java.net.TwoStacksPlainSocketImpl.socketBind(Native Method)
at java.net.TwoStacksPlainSocketImpl.socketBind(TwoStacksPlainSocketImpl.java:137)
...
我能理解它说已经在使用的地址:JVM_Bind ,但是远程调试应该如何工作呢? (我的意思是有没有办法访问客户端虚拟机端口而不转发它?显然没有)非常感谢任何帮助解决这个问题。