`
YOUNG918
  • 浏览: 188726 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Debugging with the Maven Jetty Plugin in Eclipse

    博客分类:
  • java
阅读更多

debug:

http://docs.codehaus.org/display/JETTY/Debugging+with+the+Maven+Jetty+Plugin+inside+Eclipse

Debugging with the Maven Jetty Plugin in 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.

 

 

 

 

 

 

分享到:
评论

相关推荐

    Debugging With GDB中文版

    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...

    The Art of Debugging with GDB, DDD, and Eclipse

    ### 《调试的艺术:使用GDB、DDD及Eclipse》 #### 书籍概述 《调试的艺术:使用GDB、DDD及Eclipse》是一本由Norman Matloff与Peter Jay Salzman合著的专业书籍,旨在帮助程序员掌握高效调试技巧。本书不仅深入介绍...

    THE ART OF DEBUGGING with GDB, DDD, and Eclipse

    ### 调试的艺术:利用GDB、DDD和Eclipse #### 一、书籍简介 《调试的艺术》是由诺曼·马特洛夫(Norman Matloff)和彼得·杰伊·萨尔兹曼(Peter Jay Salzman)共同编著的一本专业书籍。该书由No Starch Press出版,并...

    Debugging With GDB 无水印pdf

    Debugging With GDB 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除

    Art of Debugging with GDB, DDD, and Eclipse 软件调试的艺术

    《软件调试的艺术》一书,无论是中文版还是英文版,都是深入探讨调试技术的重要资源,尤其对于使用GDB、DDD和Eclipse等工具的开发者来说,更是不可或缺的参考书籍。调试是软件开发过程中的关键环节,它能帮助我们找...

    debugging with gdb中文带书签特别版.pdf

    《Debugging with gdb中文带书签特别版》是一本关于GNU源代码级调试器GDB的中文教程书籍,适配gdb版本6.8.50.***。书中详细介绍了GDB的各种功能、命令以及如何使用该工具进行有效的程序调试。 首先,书中提供了一个...

    debugging_with_gdb(中文版pdf)

    根据提供的信息,我们可以总结并详细解释与“debugging_with_gdb(中文版pdf)”相关的知识点。这份文档似乎是一份关于使用 GDB(GNU Debugger)进行调试的手册或指南的中文版 PDF 文件。GDB 是一个非常强大的开源调试...

    Debugging with gdb Tenth Edition

    《使用gdb进行调试 第十版》是介绍GNU源码级调试器gdb的官方文档。本书由Richard Stallman、Roland Pesch、Stan Shebs等多位作者撰写,旨在为用户提供一个全面的gdb使用指南,涵盖gdb版本7.5至1.0.53。...

    Debugging with gdb 中文版 pdf

    顶顶大名的Debugging with gdb的中文版,之前在这里下载xps版,我转成了pdf,阅读更方便。

    Debugging with gdb(英文)

    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 Fiddler

    Debugging with Fiddler,介绍Fiddler的书籍

    Debugging-with-GDB.zip_Debugging with GDB

    《使用GDB进行调试》 GDB(GNU Debugger)是开源社区GNU开发的一款强大的源代码级调试器,广泛应用于C、C++等编程语言。它允许程序员在运行时检查和控制程序,查找并修复错误,从而提高软件的质量和可靠性。...

    The.Art.of.Debugging.with.GDB.DDD.and.Eclipse.pdf

    然而,根据标题和描述,我们可以推断出这本书的内容涵盖使用GDB、DDD和Eclipse进行程序开发调试的方法。GDB(GNU Debugger)是一个由GNU开源组织提供的强大的命令行调试工具,DDD(Data Display Debugger)是基于GDB...

    Debugging.with.Fiddler

    Debugging.with.Fiddler 带书签

    Debugging with GDB 10th edition

    ### GDB:GNU源代码级调试器 #### 知识点一:GDB概述与许可协议 - **GDB简介**:GDB(GNU Debugger)是GNU项目的一部分,是一款广泛使用的开源程序调试工具,用于调试C、C++、Objective-C等语言编写的程序。...

    Debugging with Fiddler 2012 (英文版 Eric Lawrence 亚马逊5星 热评 畅销书) 网络编程 Web服务开发调试利器

    Debugging with Fiddler 2012 (英文版 Eric Lawrence 亚马逊5星 热评 畅销书) 网络编程 Web服务开发调试利器 亚马逊11个客户全部评5星,热评畅销书。 Web Services 开发必备。

Global site tag (gtag.js) - Google Analytics