Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use SWT Spy for SWT applications?

Tags:

java

eclipse

swt

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?

like image 941
Micha Wiedenmann Avatar asked Jan 27 '26 11:01

Micha Wiedenmann


1 Answers

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.

like image 72
sambi reddy Avatar answered Jan 30 '26 02:01

sambi reddy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!