Debugging with the Maven Jetty Plugin in Eclipse
转自:http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin+inside+Eclipse
Step 1
Go to the Run/External Tools/External Tools ..." menu item on the "Run"
menu bar. Select "Program" and click the "New" button. On the "Main"
tab, fill in the "Location:" as the full path to your "mvn" executable.
For the "Working Directory:" select the workspace that matches your
webapp. For "Arguments:" add jetty:run
.
Move to the "Environment" tab and click the "New" button to add a new variable named MAVEN_OPTS
with the value:
-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=4000,server=y,suspend=y
If you supply suspend=n instead of suspend=y you can start
immediately without running the debugger and launch the debugger at
anytime you really wish to debug.
Step 2
Then, pull up the "Run/Debug/Debug ..." menu item and select "Remote
Java Application" and click the "New" button. Fill in the dialog by
selecting your webapp project for the "Project:" field, and ensure you
are using the same port number as you specified in the address=
property above.
Now all you need to do is to Run/External Tools and select the name
of the maven tool setup you created in step 1 to start the plugin and
then Run/Debug and select the name of the debug setup you setup in
step2.
From instructions provided by Rolf Strijdhorst on the Maven mailing list
Stopping Jetty
In order to stop the jetty server the "Allow termination of remote
VM" should be checked in debug dialog in Step 2. When you have the
jetty server running and the debugger connected you can switch to the
debug perspective. In the debug view, right click on the Java
HotSpot(TM) Client VM[localhost:4000] and chose terminate. This will
stop the debugger and the jetty server.
分享到:
相关推荐
This is the Tenth Edition, of Debugging with GDB: the GNU Source-Level Debugger for GDB (GDB) Version 8.1.90.20180814-git. Copyright © 1988-2018 Free Software Foundation, Inc. Permission is granted...
英文原版。是关于使用GDB,DDD,Eclipse进行调试的优秀工具书,比manual要好多了。
Amazon五星图书,优秀的软件调试入门著作 总结业界多年口口相传的调试经验 丰富的C/C++实例阐述适用于各种平台与编程语言的通用调试原则 详解GDB、DDD和Eclipse三大工具应用
Debugging with gdb The gnu Source-Level Debugger Tenth Edition, for gdb version 7.5-1.0.53
Debugging with GDB,The gnu Source-Level Debugger 10th Edition, for gdb version 7.3.1.20111010 Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free ...
debugging with gdb中文版,学习gdb必备
中英两本
In addition to offering specific advice for debugging with each tool, authors Norm Matloff and Pete Salzman cover general strategies for improving the process of finding and fixing coding errors, ...
经典书籍 Debugging with gdb之中文版,gdb官方推荐读本,除手册外最佳书籍!
debugging_with_gdb(中文版pdf) debugging_with_gdb(中文版pdf)
Debugging with gdb Debugging with gdb Debugging with gdb Debugging with gdb
Debugging with gdb中文版,整理出目录结构,方便阅读。
Debugging With GDB 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
gdb调试工具官方介绍文档 Debugging with gdb The gnu Source-Level Debugger Tenth Edition, for gdb version 10.0.50.20200111-git (GDB) Richard Stallman, Roland Pesch, Stan Shebs, et al.
debugging with gdb
Debugging Pentaho 2.0 with Eclipse
Debugging with Fiddler,介绍Fiddler的书籍