Components                          Debugger Interfaces

                /    |--------------|
               /     |     VM       |
 debuggee ----(      |--------------|  <------- JVM TI - Java VM Tool Interface
               \     |   back-end   |
                \    |--------------|
                /           |
 comm channel -(            |  <--------------- JDWP - Java Debug Wire Protocol
                \           |
                     |--------------|
                     | front-end    |
                     |--------------|  <------- JDI - Java Debug Interface
                     |      UI      |
                     |--------------|

JDI是JPDA的上层接口,我们先搭建它的一个example,先感受一下它的功能。

JDI specification 是JDI的类库,JDI 的三个例子 (我们这里运行第一个Trace的例子)

 

 

注意:

  1. 需要包含tools.jar包
  2. 使用Eclipse IDE时,需要设置Working directory 指定被运行的类。JDI tutorial (trace example)

相关文章:

  • 2021-05-25
  • 2022-01-16
  • 2022-01-09
  • 2022-12-23
  • 2021-09-06
  • 2022-01-18
  • 2021-04-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-22
  • 2021-08-17
  • 2022-03-06
  • 2022-12-23
  • 2021-08-21
  • 2021-08-04
相关资源
相似解决方案