1.进入eclipse
2.查看远程tomcat的对外远程端口 我的是8001
3.启动tomcat
4.遇到的错误无法连接Launching Websockettomcat " has encountered aFailed to connect to remote VM . Connectiored
解决方案:
1.更改tomcat对外端口
2.将对外端口在tomcat当中对外开放
SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8001
3.重启tomcat