文档详情

Debug Java applications remotely with Eclipse——使用 Eclipse 远程调试 Java 应用程序.doc

发布:2019-05-01约2.79万字共19页下载文档
文本预览下载声明
Debug Java applications remotely with Eclipse Use the power of the Eclipse IDE to spread around your Java application debugging Level: Intermediate HYPERLINK /developerworks/java/library/os-eclipse-javadebug/index.html?S_TACT=105AGX02S_CMP=EDU \l author#author Charles Lu ( HYPERLINK mailto:charleslu@?subject=Debug%20Java%20applications%20remotely%20with%20Eclipse charleslu@), Software Engineer, IBM 09 Dec 2008 You dont need to debug Java? applications on just your local desktop. Learn how to spread around your debugging using different connection types that make up remote debugging. This article explains the features and examples that show how to set up remote application debugging. Remote debugging can be useful for application development, such as developing a program for a low-end machine that cannot host the development platform, or debugging programs on dedicated machines like Web servers, whose services cannot be shut down. Other examples include Java applications running with limited memory or CPU power, such as mobile devices, or developers wanting to separate the application and development environments, etc. Prerequisites Launch-configuration type A launch configuration keeps a set of attributes that can be used to launch a program. The launch-configuration type is a unique type of program that can be launched in the Eclipse platform. If you dont have it already, download Eclipse V3.4 (Ganymede). In Ganymede, the socket listening connector has been added to the Remote Java Application launch-configuration type. Eclipses new socket listening connector allows you to start the Java debugger, which listens for a connection on a specific socket. The program being debugged can then be started with command-line options to connect to the debugger. Prior to the Ganymede release, only a socket-attaching connector was provided, and the program being debugged had to be a debug host that was connected by the debugger. It is impractical for mobile devices to be a host
显示全部
相似文档