Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a SWT debugger/spy?

I'm trying to debug my SWT dialog (in an Eclipse plugin.) I'd like to find out why the layout is the way it is, and where the borders are between the controls. I've seen the SWT Spy plugin (http://www.eclipse.org/swt/tools.php), but I'd like something more graphical.

I'm basically looking for something similar to the way the WebKit developer tools panel allows you to point at something and have it be outlined in both the actual rendered page, and in the HTML source.

like image 840
dplass Avatar asked Jun 03 '10 18:06

dplass


2 Answers

Check out Picasso: http://wiki.eclipse.org/PDE/Incubator/Picasso

like image 121
Fabian Steeg Avatar answered Oct 20 '22 13:10

Fabian Steeg


Yes, there is an SWT Spy. Starting from Eclipse 4.7 it is integrated in PDE. To see the SWT Spy, press CTRL + ALT + SHIFT + F9

Please see the attached image to see how it looks like:

enter image description here

In case of doubt, please see also: http://www.vogella.com/tutorials/EclipseCodeAccess/article.html#swt-spy

like image 38
psuzzi Avatar answered Oct 20 '22 15:10

psuzzi