1.打斷點html
2.右擊「jetty:run」,選擇Debug運行瀏覽器
3.瀏覽器發送http請求,開始調試socket
使用遠程調試功能調試本地程序,Server端和Client端都在本地運行maven
1.進入項目目錄,運行server端,於指定端口監聽ide
$ mvnDebug clean jetty:run -Poffline Preparing to execute Maven in debug mode Listening for transport dt_socket at address: 8000
配置idea
1.idea--->Run--→Edit Configurations,進入Run/Debug Configurations配置頁spa
2.點擊"+",添加Remote插件
2.運行Client端debug
點擊Debug按鈕調試
3.瀏覽器發送http請求,開始調試
1.Idea遠程調試
http://blog.sina.com.cn/s/blog_6af189790102wh6c.html
2.IntelliJ IDEA's Java Remote Debug(遠程調試)
http://hane00.blog.163.com/blog/static/1600615220127952423971/