使用eclipse 遠程調(diào)試java 應(yīng)用程序-------外文翻譯.doc
約19頁DOC格式手機打開展開
使用eclipse 遠程調(diào)試java 應(yīng)用程序-------外文翻譯,use the power of the eclipse ide to spread around your java application debugginglevel: intermediatecharles lu (charleslu@tw.ibm.com), software engineer, ibm09 ...
內(nèi)容介紹
此文檔由會員 wanli1988go 發(fā)布
Use the power of the Eclipse IDE to spread around your Java application debugging
Level: Intermediate
Charles Lu (charleslu@tw.ibm.com), Software Engineer, IBM
09 Dec 2008
You don't 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 don't 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. Eclipse's 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 due to insufficient memory and CPU power.
To use remote debugging, Java Virtual Machine (JVM) V5.0 or later must be used, such as IBM® J9 or Sun Microsystems' Java SE Development Kit (JDK). In this article, we focus on remote debugging, rather than detail each of Eclipse's debugging features. See Resources for more information about debugging with Eclipse and where to find the aforementioned software.
利用 Eclipse IDE 的強大功能遠程調(diào)試 Java 應(yīng)用程序
級別: 中級
Charles Lu, 軟件工程師, IBM
2009年12月9日
在本地計算機上調(diào)試 Java™ 應(yīng)用程序并不是惟一的選擇。學習如何使用構(gòu)成遠程調(diào)試的不同連接類型進行遠程調(diào)試。本文概述了設(shè)置遠程應(yīng)用程序調(diào)試的特性和示例。
遠程調(diào)試對應(yīng)用程序開發(fā)十分有用。例如,為不能托管開發(fā)平臺的低端機器開發(fā)程序,或在專用的機器上(比如服務(wù)不能中斷的 Web 服務(wù)器)調(diào)試程序。其他情況包括:運行在內(nèi)存小或 CUP 性能低的設(shè)備上的 Java 應(yīng)用程序(比如移動設(shè)備),或者開發(fā)人員想要將應(yīng)用程序和開發(fā)環(huán)境分開,等等。
先決條件
啟動配置類型
啟動配置 保存一組用于啟動程序的屬性。啟動配置類型是一種可以在 Eclipse 平臺上啟動的獨特程序。
如果您還沒安裝該程序,請下載 Eclipse V3.4(Ganymede)。在 Ganymede 中,套接字(socket)監(jiān)聽連接器被添加到 Remote Java Application 啟動配置類型。Eclipse 最新的套接字監(jiān)聽連接器允許您打開 Java 調(diào)試器,它能夠監(jiān)聽特定套接字上的連接??梢詮拿钚羞x項打開被調(diào)試的程序,并將其連接到調(diào)試器。在 Ganymede 發(fā)布之前,僅有一個連接套接字的連接器,被調(diào)試的程序所在的機器必須是一個與調(diào)試器相連的調(diào)試主機。由于受到內(nèi)存和 CPU 不足的限制,要想讓移動設(shè)備充當主機是不現(xiàn)實的。
為了進行遠程調(diào)試,必須使用 Java Virtual Machine (JVM) V5.0 或更新版本,比如 IBM® J9 或 Sun Microsystem 的 Java SE Development Kit(JDK)。本文主要討論遠程調(diào)試,而不是每個 Eclipse 調(diào)試特性的細節(jié)。查看 參考資料 獲得更多關(guān)于使用 Eclipse 進行調(diào)試的信息,并且可以找到上面提到的軟件。
Level: Intermediate
Charles Lu (charleslu@tw.ibm.com), Software Engineer, IBM
09 Dec 2008
You don't 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 don't 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. Eclipse's 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 due to insufficient memory and CPU power.
To use remote debugging, Java Virtual Machine (JVM) V5.0 or later must be used, such as IBM® J9 or Sun Microsystems' Java SE Development Kit (JDK). In this article, we focus on remote debugging, rather than detail each of Eclipse's debugging features. See Resources for more information about debugging with Eclipse and where to find the aforementioned software.
利用 Eclipse IDE 的強大功能遠程調(diào)試 Java 應(yīng)用程序
級別: 中級
Charles Lu, 軟件工程師, IBM
2009年12月9日
在本地計算機上調(diào)試 Java™ 應(yīng)用程序并不是惟一的選擇。學習如何使用構(gòu)成遠程調(diào)試的不同連接類型進行遠程調(diào)試。本文概述了設(shè)置遠程應(yīng)用程序調(diào)試的特性和示例。
遠程調(diào)試對應(yīng)用程序開發(fā)十分有用。例如,為不能托管開發(fā)平臺的低端機器開發(fā)程序,或在專用的機器上(比如服務(wù)不能中斷的 Web 服務(wù)器)調(diào)試程序。其他情況包括:運行在內(nèi)存小或 CUP 性能低的設(shè)備上的 Java 應(yīng)用程序(比如移動設(shè)備),或者開發(fā)人員想要將應(yīng)用程序和開發(fā)環(huán)境分開,等等。
先決條件
啟動配置類型
啟動配置 保存一組用于啟動程序的屬性。啟動配置類型是一種可以在 Eclipse 平臺上啟動的獨特程序。
如果您還沒安裝該程序,請下載 Eclipse V3.4(Ganymede)。在 Ganymede 中,套接字(socket)監(jiān)聽連接器被添加到 Remote Java Application 啟動配置類型。Eclipse 最新的套接字監(jiān)聽連接器允許您打開 Java 調(diào)試器,它能夠監(jiān)聽特定套接字上的連接??梢詮拿钚羞x項打開被調(diào)試的程序,并將其連接到調(diào)試器。在 Ganymede 發(fā)布之前,僅有一個連接套接字的連接器,被調(diào)試的程序所在的機器必須是一個與調(diào)試器相連的調(diào)試主機。由于受到內(nèi)存和 CPU 不足的限制,要想讓移動設(shè)備充當主機是不現(xiàn)實的。
為了進行遠程調(diào)試,必須使用 Java Virtual Machine (JVM) V5.0 或更新版本,比如 IBM® J9 或 Sun Microsystem 的 Java SE Development Kit(JDK)。本文主要討論遠程調(diào)試,而不是每個 Eclipse 調(diào)試特性的細節(jié)。查看 參考資料 獲得更多關(guān)于使用 Eclipse 進行調(diào)試的信息,并且可以找到上面提到的軟件。