Introduction to the Java platform debugging architecture

zhaozj2021-02-17  49

Introduction to the Java platform debugging architecture

Architecture overview

The Java platform debug architecture is shown below:

Component debug interface

/ | -------------- |

/ | VM |

Debuggee ---- (| -------------- | <- JVMDI - Java VM Debug Interface

/ | Back-end |

/ | -------------- |

/ |

COMM CHANNEL - (| <-------- JDWP - Java Debug Wire Protocol

/ |

| -------------- |

| Front-end |

| -------------------- JDI - Java Debug Interface

| UI |

| -------------- |

1, what is JPDA

JPDA is an abbreviation for Java Platform Debugger Architecture. It is a multi-layer debug architecture that allows programmers to make a write debugger on one or more JVMs.

Includes three parts:

JVMDI: Defines a debugging service that a Java virtual machine can provide.

JDWP: Defines the communication protocol of different debuggers and different processes when Java debugging.

JDI: Defines the debug interface of the semantic level.

2, Debuggee

Is a debugged process

3,

JVMDI is a two-way interface. JVMDi clients can get related debug information by defining "events" of interest. JVMDi itself can query the status of the debugged program or control the debugged program.

to be continued

Accesine@163.com

转载请注明原文地址:https://www.9cbs.com/read-30282.html

New Post(0)