Java: Remote Debug and javadebug

Source: Internet
Author: User

Java: Remote Debug and javadebug
Java remote debugging

-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,address=5005,suspend=n

Note:

-Enable debugging in XDebug.
-Disable the default sun. tools. debug Debugger for Xnoagent. If the agent is disabled, the Attach method cannot be used for remote connection debugging. Therefore, this option is generally not used.
-Djava. compiler = NONE: Prohibit loading by JIT compiler.
-Xrunjdwp: JPDA reference execution instance for loading JDWP.
Transport is used for communication between the debugging program and the process used by the VM.
Dt_socket socket transmission.
Dt_shmem shared memory transmission, limited to Windows.
Whether the server = y/n VM needs to be executed as the debugging server.
Address = 3999 indicates the port number of the debugging server, which is used by the client to connect to the server.
Whether suspend = y/n starts the VM after the client establishes a connection.

 

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.