• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to debug a swing GUI in Eclipse

 
albert kao
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to debug a swing GUI in Eclipse?
Do I use Swing Explorer (https://swingexplorer.dev.java.net/ - the latest version 10.May.2009 Version 1.4 is more than 1 year old though) or another tool?

 
Maneesh Godbole
Saloon Keeper
Posts: 11070
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Debug?GUI?
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?
 
albert kao
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 436
2
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 64
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
John McParland
Ranch Hand
Posts: 92
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic