[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 333
  • Last Modified:

debug GUI

Can you use 'jdb' to debug a GUI program? How do you debug a java GUI program?
0
menubar
Asked:
menubar
1 Solution
 
kuroCommented:
I recommend remote debug function.
jdb can attach running process which is started with -debug option on remote machine.

debuggee:
   Start java program with -debug option.
   Then it show password to attach.
debugger:
   Start jdb with -host and -password option.
0
 
menubarAuthor Commented:
Sorry, but I don't understand what the above has to do with GUI programs?
0
 
Igor BazarnyCommented:
Hi,

In fact, GUI debugging is not very different to non-GUI debugging. Essential point is that you need to set breakpoint at function you want to trace--it's impossible to reach GIU-related code using step by step execution from entry point. I would prefer reach GUI-based debugger (e.g. JBuilder).

Regards,
Igor Bazarny,
Brainbench MVP for Java 1
www.brainbench.com
0
 
CleanupPingCommented:
menubar:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
sudhakar_koundinyaCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:


[split points between bazarny and kuro]


Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
sudhakar_koundinya
EE Cleanup Volunteer
---------------------
If you feel that your question was not properly addressed, or that none of the comments received were appropriate answers, please post your concern in THIS thread.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now