Discover eclipse remote debug tomcat, include the articles, news, trends, analysis and practical advice about eclipse remote debug tomcat on alibabacloud.com
Take/apache-tomcat-7.0.26 or/apache-tomcat-7.0.52 for example:
VI startup.sh
In the first row of the configuration, add the following configuration, debug port 8788:
Declare-x catalina_opts= "-server-xdebug-xnoagent-djava.compiler=none-xrunjdwp:transport=dt_socket,server=y, suspend=n,address=8788 "
and restart Tomca
One, Tomcat development remote debugging Port Method 1 Win systemIn the Catalina.bat:SET Catalina_opts=-server-xdebug-xnoagent-djava.compiler=none-xrunjdwp:transport=dt_socket,server=y,suspend=n, address=8899 Linux SystemsIn the catalina.sh:Catalina_opts= "-server-xdebug-xnoagent-djava.compiler=none-xrunjdwp:transport=dt_socket,server=y,suspend=n, address=8899 "Method 2 Win systemCreate a new Debug.bat i
1. The first thing you need to configure in the Linux system Tomcat/bin folder is catalina.sh this file to add:Catalina_opts= "-xdebug-xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"Description of the parameters:-xdebug: Enable debug mode-xrunjdwpJPDA Implementation Library loaded into the JVMTransport=dt_socket:socket connection, optional dt_shmem connect to
Production and test environments can set tomcat boot to debug mode, start a remote listening port, and remotely debug a project in local eclipse to remotely debug tomcat on the specifie
Tomcat Implementation method:
Add the following setting to Tomcat's Catalina.bat file, and of course the set catalina_opts variable should be before using it. This is to set some virtual machine parameters at Tomcat startup so that the server allows remote connectivity, address=1861 represents the port number of the remote
1. First, you need to configure catalina.sh in the Linux system Tomcat/bin directory to add this file:Catalina_opts= "-xdebug-xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"Parameter description:-xdebug: Enable debug mode-xrunjdwploading JVM 's JPDA Reference Implementation LibraryTransport=dt_socket:socket connection, optional dt_shmem Connect to the debu
The project is deployed in a local server to start or debug, or to deploy the project on a remote server. In general, if you build a server locally, you can directly choose to start or direct debug, but if
How do we debug a project when it is deployed on a remote server? Som
-xdebug-xnoagent-xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=nThe above line is used to start the remote debug, the port is 8000,suspend indicates whether the container starts debug, you can see the internal process of Tomcat or jetty boot-dcom.sun.management.jmxremote.port=9999-dcom.sun.management.jmxre
Idea Remote Debug tomcat is simple and configured as follows:1. Modify the Tomcat server configurationOpen tomcat/bin/catalina.shAdd the following parameters in the blank SpaceCatalina_opts= "-xdebug-xrunjdwp:transport=dt_socket,address=xxx.xxx.xx.xx:60222,suspend=n,server=y
Remote Debug requires file modification:Environment Windows DevelopmentAdded in the Catalina.bat file under Apache-tomcat-6.0.26\bin in 1.tomcat: Set catalina_opts=-server-xdebug-xnoagent-djava.compiler= none-xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8989Add to Catalina.bat file location: Goto Setargs:d O
[Switch] set the remote Debug Method in Tomcat
Http://hi.baidu.com/huamarco/blog/item/75c3f2a411e3ebf29152ee34.html
From: http://blog.csdn.net/zmxj/
What is remote debugging? When debugging Java code for a web project, we need to integrate your Tomcat server with your develo
1. In the remote Tomcat bin inside the catalina.sh PlusCatalina_opts= "-xdebug-xrunjdwp:transport=dt_socket,address=9001,server=y,suspend=n"This address is a remote port2. Open Eclipse, click the Debug button in the upper left corner,650) this.width=650; "src=" http://my.csd
directly put into the lib directory), here ant to operate, create an ant file "build. XML, note to modify the gwt-user.jar path, open it, right-click on the right and choose stripgwt-lib -- run. In this way, a gwt-user.jar file that can be used under Tomcat is generated under the "lib" directory.
Configure hosted of GWT
1, extract the gwt-user.jar (under the original GWT)2. Copy the "GWT-user/COM/Google/GWT/CORE/public/gwt-hosted.html#history.html" f
Tags: NET project div pen bug Tom Port cannot find a remote1. Open Eclipse, click the Debug button in the upper left corner,2. Click on the Red area3. Double-click the red area4.Project: Select the project you want to debug, Host: Enter your remote ip,port: Remote Call port.
Copy startup to start-debug-up with the following modifications:Set "Executable=%catalina_home%\bin\catalina.bat"REM Check that target executable existsIf exist "%executable%" goto okexececho Cannot find "%executable%"echo this file was needed to runGoto END: okexecREM Get remaining unshifted command line arguments and save them in theSet cmd_line_args=: SetargsIf ""%1 "" = = "" "Goto DonesetargsSet cmd_line_args=%cmd_line_args%%1ShiftGoto Setargs:d O
Debug
What is remote debugging? When we typically debug a Web project's Java code, we need to integrate your Tomcat server with your development tools (such as JBuilder), or some plug-in support for the tool (such as the Myclipse under Eclipse), which is done locally, That i
1. Configuring TomcatLinxu system: tomcat/bin/catalina.sh or startup.sh the beginning of the following additions:Declare-x catalina_opts= "-xdebug-xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9998"9998 is the port we are debugging remotely, which is used later.2. Start TomcatLooking at the Tomcat console output, we can see that the configuration we just had is in effect and the output is as follo
Java EE Development of various resources download list, history of the most IT resources, click to enter! A Application ScenariosIn the actual testing process, you may encounter due to the continuity of program execution, we can not construct a test scenario to verify the correctness of a function, only through code-level debugging to verify that the functionality is correct. However, the development of local debugging, it is not persuasive, then we testers must connect to Linux baseline version
1: Modify the catalina.sh of Tomcat on Linux, the first line adds Declare-x catalina_opts= "-xdebug-xrunjdwp:transport=dt_socket,server=y, suspend=n,address=9528 "2: In Eclipse, point "Run->debug ...", select "Remote Java Application", follow the prompts to create a new, "Project" to select the project to
Operation ChapterThis section is mainly about how to turn on Tomcat remote debugging, with an example. This article works for Windows and Linux. Suppose there are two machines,a is the Tomcat server machine, andB is the IDE installation machine. a and b can be the same machine, usually a is a test environment andB is the development environment. Compact versionI
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.