tomcat中部署了項目,準備測試遠程調試.tomcat
1.配置ideasocket
2. 修改catalina.bat,並啓動tomcatide
catalina.bat:測試
...
rem 下面的參數就是從idea配置中複製過來的,注意沒有引號 set JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 setlocal rem Suppress Terminate batch job on CTRL+C if not ""%1"" == ""run"" goto mainEntry if "%TEMP%" == "" goto mainEntry ...
3. 啓動tomcat,啓動idea遠程調試idea
雙擊啓動tomcatspa
點擊啓動idea遠程調試,出現"Connected to the target VM, address: '192.168.141.116:5005', transport: 'socket'",表示鏈接遠程服務成功3d
4.打斷點測試。調試