<bdo id='7Gorc'></bdo><ul id='7Gorc'></ul>

  • <i id='7Gorc'><tr id='7Gorc'><dt id='7Gorc'><q id='7Gorc'><span id='7Gorc'><b id='7Gorc'><form id='7Gorc'><ins id='7Gorc'></ins><ul id='7Gorc'></ul><sub id='7Gorc'></sub></form><legend id='7Gorc'></legend><bdo id='7Gorc'><pre id='7Gorc'><center id='7Gorc'></center></pre></bdo></b><th id='7Gorc'></th></span></q></dt></tr></i><div id='7Gorc'><tfoot id='7Gorc'></tfoot><dl id='7Gorc'><fieldset id='7Gorc'></fieldset></dl></div>
    <legend id='7Gorc'><style id='7Gorc'><dir id='7Gorc'><q id='7Gorc'></q></dir></style></legend><tfoot id='7Gorc'></tfoot>

    <small id='7Gorc'></small><noframes id='7Gorc'>

        Eclipse 调试器事件

        时间:2023-08-22

          <small id='L67HO'></small><noframes id='L67HO'>

            <legend id='L67HO'><style id='L67HO'><dir id='L67HO'><q id='L67HO'></q></dir></style></legend>

              <tfoot id='L67HO'></tfoot>
              <i id='L67HO'><tr id='L67HO'><dt id='L67HO'><q id='L67HO'><span id='L67HO'><b id='L67HO'><form id='L67HO'><ins id='L67HO'></ins><ul id='L67HO'></ul><sub id='L67HO'></sub></form><legend id='L67HO'></legend><bdo id='L67HO'><pre id='L67HO'><center id='L67HO'></center></pre></bdo></b><th id='L67HO'></th></span></q></dt></tr></i><div id='L67HO'><tfoot id='L67HO'></tfoot><dl id='L67HO'><fieldset id='L67HO'></fieldset></dl></div>
              • <bdo id='L67HO'></bdo><ul id='L67HO'></ul>
                  <tbody id='L67HO'></tbody>
                • 本文介绍了Eclipse 调试器事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在我的 Eclipse 插件中,我希望收到有关调试器事件的通知(例如,当单步执行或遇到断点时).通过使用以下代码订阅调试事件,我已设法使其在 JDT 环境中工作:

                  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 subscribing to debug events using this code:

                  DebugPlugin.getDefault().addDebugEventListener(this);
                  

                  这给了这个事件处理程序:

                  Which gives this event handler:

                  public void handleDebugEvents(DebugEvent[] events)
                  {
                  }
                  

                  在 JDT 中,这是在 Breakpoint 或 Suspend 事件上触发的,我希望 CDT 中的行为相同.然而,事实并非如此.我在调试会话开始时只收到两个 Create 事件:

                  In JDT this is fired on Breakpoint or Suspend events and I was hoping the behaviour would be the same in CDT. However, it is not. I only get two Create events at the start of the debug session:

                  DebugEvent[org.eclipse.cdt.dsf.gdb.launching.GDBProcess@ae0aae,创建,未指定]DebugEvent[org.eclipse.debug.core.model.RuntimeProcess@920d5d, CREATE, UNSPECIFIED]

                  DebugEvent[org.eclipse.cdt.dsf.gdb.launching.GDBProcess@ae0aae, CREATE, UNSPECIFIED] DebugEvent[org.eclipse.debug.core.model.RuntimeProcess@920d5d, CREATE, UNSPECIFIED]

                  是否存在不需要特定依赖于 JDT 或 CDT 的通用解决方案?

                  Is there a generic solution that wouldn't require specific dependencies on JDT or CDT?

                  谢谢,艾伦

                  推荐答案

                  我确实找到了解决方案并在这里回答了我的其他问题:Eclipse 插件 - 在步进或中断时处理事件

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

                  艾伦

                  这篇关于Eclipse 调试器事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:PyDev 导致在 Eclipse J2EE 透视图中重复显示项目 下一篇:Eclipse 插件开发 - Gradle 无法从 Eclipse 启动器运行:java.io.IOException:

                  相关文章

                  <small id='XNxwN'></small><noframes id='XNxwN'>

                    <i id='XNxwN'><tr id='XNxwN'><dt id='XNxwN'><q id='XNxwN'><span id='XNxwN'><b id='XNxwN'><form id='XNxwN'><ins id='XNxwN'></ins><ul id='XNxwN'></ul><sub id='XNxwN'></sub></form><legend id='XNxwN'></legend><bdo id='XNxwN'><pre id='XNxwN'><center id='XNxwN'></center></pre></bdo></b><th id='XNxwN'></th></span></q></dt></tr></i><div id='XNxwN'><tfoot id='XNxwN'></tfoot><dl id='XNxwN'><fieldset id='XNxwN'></fieldset></dl></div>
                  1. <tfoot id='XNxwN'></tfoot>
                    • <bdo id='XNxwN'></bdo><ul id='XNxwN'></ul>

                    1. <legend id='XNxwN'><style id='XNxwN'><dir id='XNxwN'><q id='XNxwN'></q></dir></style></legend>