Is there a SWT debugger/spy?
Asked Answered
H

3

8

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.

Humectant answered 3/6, 2010 at 18:36 Comment(1)
Picasso didn't work for meCoverup
I
5

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

Illjudged answered 3/6, 2010 at 21:26 Comment(1)
Picasso did the trick. Yari didn't seem to work on dialog boxes.Humectant
H
4

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

Horripilation answered 20/12, 2016 at 16:5 Comment(0)
R
3

For Eclipse Plug-In or RCP development there is another useful tool called SWT Spy, which has the advantage that it can be turned on and off at runtime. Also there is a working update site. I couldn't find a binary version of picasso. I have to admit though, that picasso is probably better to get a quick overview.

Roselinerosella answered 19/11, 2012 at 17:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.