远程调试这个功能比较少用,因为直接运行程序也会打印日记,但也记录一下。
先设置好断点,打包调试程序到服务器端
address是端口号(先打开该服务器防火墙端口)
suspend=y表示等待eclipse远程调试启动,n表示不等待
java -jar -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y jar程序名
- https://www.bilibili.com/video/BV1LM41167yf/?spm_id_from=333.337.search-card.all.click&vd_source=7db76fed7709848ce5e12bd0c9b383cb
- https://blog.csdn.net/qq_25337221/article/details/110381922?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522169690941116800180612999%2522%252C%2522scm%2522%253A%252220140713.130102334…%2522%257D&request_id=169690941116800180612999&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allsobaiduend~default-2-110381922-null-null.142v95insert_down28v1&utm_term=eclipse%E8%BF%9C%E7%A8%8B%E8%B0%83%E8%AF%95&spm=1018.2226.3001.4187
- https://blog.csdn.net/u013100581/article/details/98654062?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522169690941116800180612999%2522%252C%2522scm%2522%253A%252220140713.130102334…%2522%257D&request_id=169690941116800180612999&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allsobaiduend~default-1-98654062-null-null.142v95insert_down28v1&utm_term=eclipse%E8%BF%9C%E7%A8%8B%E8%B0%83%E8%AF%95&spm=1018.2226.3001.4187