`
soonex
  • 浏览: 2517 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
最近访客 更多访客>>
社区版块
存档分类
最新评论

Java Debuger

    博客分类:
  • Java
 
阅读更多

 

Example

 

 

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



Debugger Launch Parameters

 

 

Launch Parameter or Subparameter

Description

-Xdebug

Enables the application to be debugged.

-Xnoagent

Disables the sun.tools.debug agent so that the JPDA debugger can properly attach its own agent.

-Djava.compiler=NONE

Disables the JIT (Just-In-Time) compiler.

-Xrunjdwp

Loads the reference implementation of the Java Debug Wire Protocol, which enables remote debugging.

transport

Name of the transport to be used when debugging the application. The value can be dt_shmem (for a shared memory connection) ordt_socket (for a socket connection). Shared memory connections are available only on Windows machines.

server

If this value equals n, the application attempts to attach to the debugger at the address specified in the address subparameter. If this value equals y, the application listens for a connection at this address.

address

For socket connections, specifies a port number used for communi-cation between the debugger and the application.

For shared memory connections, specifies a name that refers to the shared memory to be used. This name can consist of any combination of characters that are valid in filenames on a Windows machine except the backslash. You use this name in the Name field of the Attach dialog box when you attach the debugger to the running application.

suspend

If the value is n, the application starts immediately. If the value is y, the application waits until a debugger has attached to it before executing.

 

 Attach Dialog Box Fields

 

Field

Description

Connector

Specifies the type of JPDA connector to use. On Windows machines, you can choose between shared memory connectors and socket connectors. On other systems, you can only use a socket connector.

For both shared memory connectors and socket connectors, there are Attach and Listen variants. You can use an Attach connector to attach to a running application.

You can use a Listen connector if you want the running application to initiate the connection to the debugger. If you use the Listen connector, multiple applications running on different JVMs can connect to the debugger.

Transport

Specifies the JPDA transport protocol to use. This field is automatically filled in according to what you have selected in the Connector field.

Host

(Only for socket attach connections.) The host name of the computer where the debugged application is running.

Port

(Only for socket connections.) The port number that the application attaches to or listens on. You can assign a port number in the address subparameter of theXrunjdwp parameter that you pass to the JVM of the application that is to be debugged. If you do not use this suboption, a port number is assigned automatically, and you can determine the assigned port number by looking at the output of the process.

Timeout

The number of seconds that the debugger waits for a connection to be established.

Name

(Only for shared memory connections.) Specifies the shared memory to be used for the debugging session. This value must correspond to the value of theaddress subparameter of the Xrunjdwp parameter that you pass to the JVM of the application that is to be debugged.

Local Address

(Only for socket listen connections.) The host name of the computer that you are running on.

分享到:
评论

相关推荐

    Debuger Bug首款手游

    游戏可能涵盖了多种编程语言,如Python、Java或C++,让玩家在娱乐中学习不同的编程语法和解决问题的方法。此外,游戏可能还会设置排行榜,鼓励玩家竞速完成关卡,提升竞技乐趣。 从技术层面来看,Debuger公司在开发...

    scriptdebuger好用的script\java\html挑错工具

    在处理Java代码时,Scriptdebuger提供了一个强大的源代码查看器,支持代码高亮、自动完成和格式化等功能。它还可以与常见的Java开发环境(如Eclipse或IntelliJ IDEA)无缝配合,进行远程调试。通过设置断点,监控...

    BUPT-Debuger 编号aidc0352华为杯参赛作品 .zip

    【标题】"BUPT-Debuger 编号aidc0352华为杯参赛作品 .zip" 提供的是一款参赛作品,由北京邮电大学(BUPT)的Debuger团队为华为杯数学建模竞赛所创作。这个压缩包内含的资源很可能包括了团队在解决数学建模问题时编写...

    TinyDebugger:简易灵巧的android-java调试器,专为多线程调试特别使用

    TinyDebugger是一款专为Android平台设计的轻量级Java调试工具,尤其适合进行多线程调试。在Android开发中,调试是解决程序问题、优化代码性能的关键环节,而TinyDebugger的出现,旨在提供一种更为便捷、高效的调试...

    SpringCloud微服务接口这么多怎么调试

    本文来自程序猿,本文主要介绍了SpringCloud微服务下服务接口调试及管理,什么样方式可以让微服务的接口管理变得更加容易些,希望对您的学习有所帮助。我们知道在微服务架构下,软件系统会被拆分成很多个独立运行的...

    HTTP.Debugger.Pro.v3.5.Incl.Keymaker-ARN

    HTTP Debugger Pro 抓取,分析和调试所有的HTTP通信信息(客户机浏览器和web服务器之间),Internet 软件开发者能利用HTTP Debuger来分析他们的程序和互联网之间的通信。 If you need to capture and analyze all ...

    Windows下Qt4应用程序开发环境搭建

    10. 辅助IDE环境的Debuger: 08_QtDebugHelper是一个调试工具,它能够支持Qt的QString类型在调试窗口中的直接显示,这对于进行Qt应用程序的调试工作十分有帮助。 整个安装过程详细说明了如何一步一步搭建出一个完整...

    详解IDEA 启动tomcat 端口占用原因以及解决方法( 使用debug模式)

    3. 打开任务管理器,我们会发现有两个 java.exe 进程,其中一个是关闭 JB 标志的 java.exe 进程,该进程关闭不会影响 IDEA 的运行。 4. 使用正常模式启动 Tomcat 服务器,然后再次使用调试模式启动。 为什么 IDEA ...

    物联网应用系统设计.docx

    在这个过程中,学生需要综合运用《无线传感器网络技术》、《嵌入式技术》、《JAVA WEB程序设计》、《Android程序设计》以及《物联网应用系统设计》等相关专业知识。 课程设计的项目主要围绕着ZigBee协议栈展开,...

    医院住院信息管理系统完整代码

    开发此系统时,可能采用的编程语言有Java、Python或PHP,配合Spring Boot、Django或Laravel等框架,以简化开发工作。同时,前端可以利用Vue.js、React或Angular等现代化的前端框架来提升用户体验。 为了确保系统的...

    webservice实例-简单图书馆

    利用Myeclipse+axis2+mysql实现的一个简单的webservice,这是一个简单的图书管理程序,有添加图书,删除图书和查询图书,还有简单的管理权限控制,是最为基础的一个webservice实例。

Global site tag (gtag.js) - Google Analytics