IDEA Debug模式控制台 Disconnected from the target VM, address: ‘127.0.0.1:62448‘, transport:‘socket‘

翻译过来就是 与目标虚拟机断开连接。端口冲突了,试过其他博主说的一种方法,就是cmd 命令 :netstat -ano 通过127.0.0.1:******查看对应的PID,然后再去任务管理器,详细信息里找PID一样的进程,结束那个进程,但是这方法并没有用。
IDEA Debug模式控制台 Disconnected from the target VM, address: ‘127.0.0.1:62448‘, transport:‘socket‘

IDEA Debug模式控制台 Disconnected from the target VM, address: ‘127.0.0.1:62448‘, transport:‘socket‘
IDEA Debug模式控制台 Disconnected from the target VM, address: ‘127.0.0.1:62448‘, transport:‘socket‘
然后看到另一个博主的一个方法,
IDEA Debug模式控制台 Disconnected from the target VM, address: ‘127.0.0.1:62448‘, transport:‘socket‘
这个方法我自己改了一下。
刚开始报错:
IDEA Debug模式控制台 Disconnected from the target VM, address: ‘127.0.0.1:62448‘, transport:‘socket‘
解决方法:在代码行前打上断点。
IDEA Debug模式控制台 Disconnected from the target VM, address: ‘127.0.0.1:62448‘, transport:‘socket‘
再Debug,可以了。
IDEA Debug模式控制台 Disconnected from the target VM, address: ‘127.0.0.1:62448‘, transport:‘socket‘