仔细看控制台,其实就是卡在这里
Connected to the target VM, address: '127.0.0.1:51138', transport: 'socket'
打开设置
-> 共享
-> 复制电脑名称下面的地址
-> 把这个地址copy到/etc/hosts 127.0.0.1 localhost后面
,
对网络并不是很了解,猜测是mac上的共享定义的域名,并没有直接指向127.0.0.1
,可能idea在Connected to the target VM
时在局域网内跑了一圈,所以会卡顿几秒,个人猜测,真实原因还待求证。