Eclipse Debugger Events

后端 未结 2 1090
名媛妹妹
名媛妹妹 2021-01-14 23:32

In my Eclipse plugin, I would like to be notified on debugger events (e.g. when stepping or a breakpoint is hit). I\'ve managed to get this working in a JDT environment by s

相关标签:
2条回答
  • 2021-01-14 23:51

    I think what you want can't be achieved (generic, implementation-independent solution) without listening and digging through every single action in the Eclipse environment, as I understand that the Eclipse generic debug plug-in is just the framework on which to build a implementation-specific debugger, like Java's own debugger.

    The static call you're making to DebugPlugin is a call to this basic 'framework' on which the CDT or JDT is running. For example, if I wanted to register a breakpoint listener to the Java debugger, I would call JDIDebugModel.addJavaBreakpointListener(<Your Java breakpoint listener class>);.

    P.S. If there is a way to maybe listen to just the events fired from/under the generic platform debug plug-in, which would include the events fired from plug-ins that extend from this generic debugger, that may ease the task you seek to accomplish.

    0 讨论(0)
  • 2021-01-15 00:08

    I did find a solution and have answered my other question here: Eclipse plugin - handling events when stepping or breaking

    Alan

    0 讨论(0)
提交回复
热议问题