JPDA and Set up Tomcat for Remote Debugging
2013-08-15 21:06
639 查看
* About JPDA (http://docs.oracle.com/javase/7/docs/technotes/guides/jpda/architecture.html)
JPDA: (Java Platform Debugger Architecture), the following diagram illustrates the architecture,
* How to setup Tomcat for remote debugging
It's quite simple to set up Tomcat for remote debugging. Open "bin/startup.bat", and you would find the following line at the end,
Just add "jpda" in frond of "start", that's
This will use the default "JPDA_TRANSPORT" and "JPDA_ADRESS" settings in "bin/catalina.bat",
** set JPDA_TRANSPORT = dt_socket
** set JPDA_ADDRESS=8000
After that, if you start tomcat, you would see the following line from the command console,
Then you can set up your IDE (eclipse) to attach to the tomcat,
除了远程debug之外,还有一种在开发阶段很方便的方式就是在eclipse里面直接指定tomcat的运行目录,然后在eclipse里面启动tomcat,这样就可以直接进行debug了。
第一步: 设置eclipse
window -> preference -> Tomcat, 然后入下图所示设置tomcat的目录 -
第二步:进行调试
如下图所示,可以在工具栏上直接双击tomcat的图标进行启动,然后就可以debug了。
JPDA: (Java Platform Debugger Architecture), the following diagram illustrates the architecture,
* How to setup Tomcat for remote debugging
It's quite simple to set up Tomcat for remote debugging. Open "bin/startup.bat", and you would find the following line at the end,
call "%EXECUTABLE%" start %CMD_LINE_ARGS%
Just add "jpda" in frond of "start", that's
call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS%
This will use the default "JPDA_TRANSPORT" and "JPDA_ADRESS" settings in "bin/catalina.bat",
** set JPDA_TRANSPORT = dt_socket
** set JPDA_ADDRESS=8000
After that, if you start tomcat, you would see the following line from the command console,
Listening for transport dt_socket at address: 8000
Then you can set up your IDE (eclipse) to attach to the tomcat,
除了远程debug之外,还有一种在开发阶段很方便的方式就是在eclipse里面直接指定tomcat的运行目录,然后在eclipse里面启动tomcat,这样就可以直接进行debug了。
第一步: 设置eclipse
window -> preference -> Tomcat, 然后入下图所示设置tomcat的目录 -
第二步:进行调试
如下图所示,可以在工具栏上直接双击tomcat的图标进行启动,然后就可以debug了。
相关文章推荐
- How to set up ADB for remote machine development and local device deployment
- Setting Up Tomcat For Remote Debugging
- tomcat - set up username and password
- cyrus-and/chrome-remote-interface: Chrome Debugging Protocol interface for Node.js
- Ehcache 1.5.0 User Guide - Remote Network debugging and monitoring for Distributed Caches(远程调式和跟踪分布式缓存)(11)
- Setting up Apache Tomcat and a Simple Apache SOAP Client for SSL Communication.
- How to set up tomcat with server authentication and client certificate authentication enabled
- Set up eclipse for Ext js and spket IDE plugin
- Remote Debugging for Tomcat with Eclipse
- how to set up the remote accout who to connection and management mysql server
- Open debug mode for Tomcat and use Eclipse to remote debug the application
- How to set up usblan and telnet for A780 in 3 easy steps
- Set up NginX and PHP for development on Mac OS X
- Set up SSH for Git and Mercurial on Mac OSX/Linux
- Mixture of conda2 and conda3 problem and A guidance of environment set-up for windows users
- 【Data Algorithms_Recipes for Scaling up with Hadoop and Spark】Chapter 7 Market Basket Analysis
- Some normal compiling and debugging commands for C# 常见C#调试和编译命令
- THE DEAD-SIMPLE STEP-BY-STEP GUIDE FOR FRONT-END DEVELOPERS TO GETTING UP AND RUNNING WITH NODE.JS,
- My Holder interface for bean and set management
- Preparing for Application and Service Deployment-Debugging and Troubleshooting Windows Azure Applic