计算机专业毕业外文翻译--使用 Eclipse 远程调试 Java 应用程序
《计算机专业毕业外文翻译--使用 Eclipse 远程调试 Java 应用程序》由会员分享,可在线阅读,更多相关《计算机专业毕业外文翻译--使用 Eclipse 远程调试 Java 应用程序(19页珍藏版)》请在毕设资料网上搜索。
1、Debug Java applications remotely with Eclipse Use the power of the Eclipse IDE to spread around your Java application debugging Level: Intermediate Charles Lu (), Software Engineer, IBM 09 Dec 2008 You dont need to debug Java applications on just your local desktop. Learn how to spread around your d
2、ebugging 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 ho
3、st 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
4、environments, etc. Prerequisites 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 li
5、stens 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
6、 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,
7、rather than detail each of Eclipses debugging features. See Resources for more information about debugging with Eclipse and where to find the aforementioned software. JPDA introduction Sun Microsystems Java Platform Debugger Architecture (JPDA) technology is a multitiered architecture that allows yo
8、u to debug Java applications in all situations easily. The JPDA consists of two interfaces (the JVM Tool Interface and JDI, respectively), a protocol (Java Debug Wire Protocol), and two software components that tie them together (back-end and front-end). Its designed for use by debuggers in any envi
9、ronment. JPDA is not only for desktop systems but works well with embedded systems, too. The JVM Tool Interface (JVMTI) defines that a VM must provide for debugging. (Editors note: Starting with Java V5, JVMTI replaced JVMDI, which was used in Java V1.4.) The Java Debug Wire Protocol (JDWP) describe
10、s the format of debugging information and requests transferred between the process being debugged and a debugger front end, which implements the JDI, such as Eclipse, Borland JBuilder, and Launch-configuration type A launch configuration keeps a set of attributes that can be used to launch a program
11、. The launch-configuration type is a unique type of program that can be launched in the Eclipse platform. Frequently used acronyms JDI Java Debug Interface JDT Java Development Tools JDWP Java Debug Wire Protocol JPDA Java Platform Debugger Architecture JVM Java Virtual Machine JVMDI JVM Debug Inter
12、face JVMTI JVM Tool Interface VM Virtual Machine many others. The program being debugged is often called the debuggee in Suns JPDA specification. The JDI is a high-level interface to define the information and requests used for remote debugging. The architecture is structured as follows. Listing 1.
13、The Java Platform Debugger Architecture Components Debugger Interfaces / |-| / | VM | debuggee -( |-| - JVMTI - Java VM Tool Interface | back-end | |-| / | comm channel -( | - JDWP - Java Debug Wire Protocol | / |-| / | front-end | debugger -( |-| - JDI - Java Debug Interface | UI | |-| Therefore, a
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中设计图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 计算机专业 毕业 外文 翻译 使用 eclipse 远程 调试 java 应用程序
