3

I have seen SWT Spy and want to debug my SWT application. However I was only able to spy on eclipse itself. That is when SWT Spy was active and the mouse was hovering over eclipse it printed debug information into the SWT Spy view, but when I moved the mouse over my application there was no output.

Can one use SWT Spy with a (standalone) SWT program too? If so, how does one set it up?

4

1 回答 1

2

SWT Spy 作为插件实现,View用于显示调试信息。问题是视图具有打印调试信息的大部分逻辑。所以你不能在你的 SWT 应用程序中使用间谍插件。

org.eclipse.swt.spy_*.jar 附有源代码,解压即可。我建议您获取源代码并根据您的需要对其进行自定义。

于 2013-07-29T19:41:10.060 回答