idea debug遠程服務器代碼

第一步:到tomcat的bin目錄下 /opt/tomcat/bin,修改文件catalina.shtomcat 添加配置:CATALINA_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=3333"服務器 如圖:socket   第二步:配置ideaide 10.X.X.156 是遠程服務器tomcat的地址
相關文章
相關標籤/搜索