全部,
我们如何调试基于 GEF 的 Eclipse 插件?目前,我有一个来自ExampleActivator
的类和自定义编辑器。但是我找不到该插件的任何输出。我尝试使用“在调试模式下启动 Eclipse”并在构造函数方法中设置断点,但没有发现任何调试活动正在发生。Activator
任何人都可以指导如何进行调试吗?
附加信息:
这是我在调试窗口中得到的跟踪:
org.eclipse.equinox.launcher.Main at localhost:1708
Thread [main] (Running)
Daemon Thread [State Data Manager] (Running)
Daemon Thread [Start Level Event Dispatcher] (Running)
Daemon Thread [Framework Event Dispatcher] (Running)
Daemon Thread [[Timer] - Main Queue Handler] (Running)
Daemon Thread [[ThreadPool Manager] - Idle Thread] (Running)
Thread [Worker-JM] (Running)
Daemon Thread [Bundle File Closer] (Running)
Thread [Worker-0] (Running)
Daemon Thread [Java indexing] (Running)
Thread [Worker-1] (Running)
Thread [Worker-3] (Running)
Thread [Worker-2] (Running)
Thread [Worker-4] (Running)
Thread [Worker-5] (Running)
但我没有找到启用 Step Into 等选项。调试模式中唯一可用的选项是挂起和终止。该过程不会在我设置的断点处停止。
这是 MANIFEST.MF:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Project1
Bundle-SymbolicName: mypackage.plugin1;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: mypackage.plugin1.MyPlugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.draw2d;bundle-version="3.6.1",
org.eclipse.gef;bundle-version="3.6.1"
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6