How to debug mvn jetty:run in Eclipse 使用mvn jetty:run命令时,在eclipse中如何配置debug
来源:互联网 发布:珠海市网络电视台 编辑:程序博客网 时间:2024/05/22 15:27
http://1985wanggang.blog.163.com/blog/static/776383320120384555181/
打开eclipse,
Run/External Tools/External Tools ..."
1.点击Run工具栏
4.打开debug配置项,如图所示
5.选择remote java application,点击新建按钮,配置项如图所示:
运行命令启动jetty服务:
1.运行自定义的jetty服务
2.启动debug
启动后的图示
注:也可以在电脑的系统环境变量中,配置mvn的环境变量,不过没有这样灵活,可以在eclipse运行程序,将控制台输出到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 jetty6: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.
- How to debug mvn jetty:run in Eclipse 使用mvn jetty:run命令时,在eclipse中如何配置debug
- mvn jetty:run debug in eclipse
- 利用eclipse external tool 执行mvn jetty:run
- mvn jetty:run-war 时出错
- maven jetty eclipse run stop debug 调试java web项目
- maven jetty eclipse run stop debug 调试java web项目
- mvn jetty:run内存溢出解决
- eclipse mvn jetty 远程调试
- 在Eclipse中使用Maven jetty进行debug
- How to run jetty in IDEA
- fail to execute goal org.eclipse.jetty:jetty-maven-plugin:jetty:run Address already in use
- AppFuse struts2Modular: mvn & mvn jetty:run-war Error
- maven项目使用mvn jetty:run 部署项目与pom.xml配置
- eclipse jetty debug
- eclipse jetty debug
- mac下使用brew安装maven并使用mvn dependency:tree,mvn spring-boot:run --debug命令运行spring boot
- mvn如何跑jetty
- eclipse jetty maven debug参数配置
- linux 系统前置显示PS1设置
- 如何减少切割材料的浪费
- Android常用工具
- Android中MenuInflater实例
- Cocos2d-x Js Binding 的手动绑定实现
- How to debug mvn jetty:run in Eclipse 使用mvn jetty:run命令时,在eclipse中如何配置debug
- Vibrator子系统
- 迭代器和解析——Python(学习笔记)
- mysql数据库的导入和导出
- ava7 解析xml文件出现莫名其妙的有关问题
- hibernate框架下修改数据库的常用方法
- 17岁哥哥沉迷于网络游戏 4岁弟弟从六楼坠下骨折
- 设计密码窗口(含“是、否”按键)窗体可关!
- Maven环境配置及构建实例