报错解决:Connected to the target VM, address: ‘127.0.0.1:32961‘, transport: ‘socket‘

idea对web项目进行debug调试时,报错Connected to the target VM, address: '127.0.0.1:32961', transport: 'socket'

报错解决:Connected to the target VM, address: ‘127.0.0.1:32961‘, transport: ‘socket‘

可能原因

  1. 测定的方法名大小写问题;
  2. 断点位置放错,重选断点位置;
  3. 端口号被占用,可查看报错端口号是否被占用。

最终解决方法

最终发现是自己误添加了exception breakpoint,导致在对整个项目进行调试的时候,无法正常调试。最后清除所有断点,重新设置需要的断点即可。

参考:intellij idea 如何一键清除所有断点

报错解决:Connected to the target VM, address: ‘127.0.0.1:32961‘, transport: ‘socket‘