aspose file tools
The moose likes Swing / AWT / SWT and the fly likes How to debug a swing GUI in Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to debug a swing GUI in Eclipse " Watch "How to debug a swing GUI in Eclipse " New topic

How to debug a swing GUI in Eclipse

albert kao
Ranch Hand

Joined: Feb 04, 2010
Posts: 252
How to debug a swing GUI in Eclipse?
Do I use Swing Explorer ( - the latest version 10.May.2009 Version 1.4 is more than 1 year old though) or another tool?

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10732

Debug usually indicates debugging the code. Looks like you have something else in mind. Can you tell us more what exactly you are trying to do here?

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
albert kao
Ranch Hand

Joined: Feb 04, 2010
Posts: 252
I mean debugging the Swing code.
Do I need to use some tool (e.g. Swing Explorer) to do that or Eclipse itself is good enough?
Hauke Ingmar Schmidt

Joined: Nov 18, 2008
Posts: 433
Eclipse is enough for debugging.

Testing GUIs is another cup of tea, beginning with the question what to test (function, usability).
Lance Colton
Ranch Hand

Joined: Nov 25, 2010
Posts: 64

I think he is talking about the fact that Eclipse has a "debugging" option for Eclipse RCP (SWT/JFace) projects, which will run the GUI and pause it when it hits a break point then allow you to view variables/continue/restart.

not so much functional verification testing, or anything of that nature.

I have limited experience with Swing development however, so couldn't answer.

~tak - tak, - tak11, - tak11
John McParland
Ranch Hand

Joined: May 11, 2009
Posts: 92

I've developed Swing applications using the standard Java Eclipse IDE and it's debugging mode was more than good enough for debugging Swing applications.

You can set breakpoints on lines of code, on certain exceptions, step through code when you hit your breakpoints and much, much more. I'd thoroughly recommend it.

Passed: SCJP 6 (90%), SCJD 6
Other: Spring training, extensive Swing experience
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: How to debug a swing GUI in Eclipse
It's not a secret anymore!