Solved

debug GUI

Posted on 2001-06-15
6
326 Views
Last Modified: 2010-03-31
Can you use 'jdb' to debug a GUI program? How do you debug a java GUI program?
0
Comment
Question by:menubar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 1

Accepted Solution

by:
kuro earned 20 total points
ID: 6195974
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
 

Author Comment

by:menubar
ID: 6196256
Sorry, but I don't understand what the above has to do with GUI programs?
0
 
LVL 7

Expert Comment

by:Igor Bazarny
ID: 6196797
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
 

Expert Comment

by:CleanupPing
ID: 9062038
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
 
LVL 14

Expert Comment

by:sudhakar_koundinya
ID: 9253852
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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Maven Project: Hibernate Dependencies Conflict 10 54
Selenium docs api java index 3 69
glassfish admin console 1 23
Tomcat 9 + java 8 error while trying to deploy a war file 2 733
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question