亮点:
config.vm.network "forwarded_port", guest: 1234, host: 12340
问题:
我尝试在this guide之后设置远程ruby调试,并在IDE中收到错误:“未能为进程调度程序找到可用的套接字端口”。看来这个问题是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 ,但是远程调试应该怎么工作呢? (我的意思是,有没有办法访问 guest 虚拟机端口而不转发该端口?显然没有)解决此问题的任何帮助将不胜感激。
最佳答案
关于sockets - 尝试远程调试时找不到进程调度程序的可用套接字端口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45084093/