Skip to content

Commit

Permalink
remote-debug jetty
Browse files Browse the repository at this point in the history
  • Loading branch information
challengeof committed Sep 23, 2016
1 parent ef1ebaa commit 88e6b27
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions remote-debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
- 如下图所示:
- ![远程 Tomcat 配置](images/remote-debugging-3.jpg)

## 服务器 Jetty 配置

- 同样是 Linux 环境
- jetty 不像Tomcat那样需要安装,只要有jetty的jar包就可以启动我们想要启动的应用。
- 在启动应用的时候加入之前上边我们copy的`-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005`就可以了。
- 就像这样:`java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -jar {your jetty path} {your port} --path {your war} 1>/dev/null 2>&1 &`


## 开始调试

Expand Down

0 comments on commit 88e6b27

Please sign in to comment.