Micha Wiedenmann
Micha Wiedenmann

Reputation: 20843

How to use SWT Spy for SWT applications?

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?

Upvotes: 3

Views: 1411

Answers (1)

sambi reddy
sambi reddy

Reputation: 3085

SWT Spy was implemented as plugin with View to show debug information. Problem is that the View has most of the logic to print debug information. So you can't use spy plugin in your SWT application.

org.eclipse.swt.spy_*.jar has source code attached, extract it. I would suggest you to get the source code and customize it as per your needs.

Upvotes: 2

Related Questions