Solved

Java runtime debugging with user interface?

Posted on 2003-10-22
7
330 Views
Last Modified: 2013-11-21
I am pretty new to Java, so my question may appear to be very simple, but still  I would like to know, how to debug program step by step, for example using JSwat. In other words is it possible somehow to go through the program step by step also watching the variables. But the main thing I need is users widowed interface, as for example TP7.0 has its own IDE, I want to achieve the same with Java.

Thanks in forward,
StillUnAware
0
Comment
Question by:StillUnAware
[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
  • 3
  • 2
  • 2
7 Comments
 
LVL 4

Expert Comment

by:vk33
ID: 9597713
Hi!

If you need IDE for java - there are a lot of them:

1. JBuilder (www.borland.com)
2. Sun ONE studio, former Forte4J (java.sun.com) (free)

These are two examples. Both of them have built-in debuggers which will let you runstep-by-step.

Regards!
0
 
LVL 4

Expert Comment

by:vk33
ID: 9597725
You can download JBuilder here:

http://www.borland.com/products/downloads/download_jbuilder.html 

Personal edition is probably free...

Good luck!
0
 
LVL 7

Expert Comment

by:tomboshell
ID: 9597743
You could also use Eclipse.  They are all very similar.  I've never used JSwat but the concepts are the same all-around.  If your tool offers to run normally that will be without the debugger.  If it allows to run in debug mode then it will require that you set a Breakpoint in your code.  This sets a flag upon a certain line in which the program execution will pause at.  Most programs allow the user to simply click in the margin to set a breakpoint, others offer a selection in the pop-up menu (right mouse click), some allow accelartor keys (Eclipse is SHIFT-CNTRL-B).  

Simply set your breakpoints at the areas that interest you.  I've never had a situation where I would attempt to debug every single last line of code (that is too tedious).  If you have a problem you should already have a rough idea where it is occuring, so set your breakpoint at the beginning of the possible problem and watch.  

For specifics on a particular tool use the ever helpful tool documentation.  
0
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 
LVL 14

Author Comment

by:StillUnAware
ID: 9598371
Thanks both of you, but still I have few little questions left.
Curently I tried to use Java NetBeans , and there is a possibility for debugging, but I dont know the executable's name (Windows platform) which to provide as java debbuger. I tried to set this param to jdb.exe, but it didn't work.
0
 
LVL 4

Assisted Solution

by:vk33
vk33 earned 25 total points
ID: 9598604
Well, I used to launch it as an integrated environment (something like runIDE.bat). And from the IDE it's quite obvious how to launch debugging session...

But it was very slow... :)

Regards!
0
 
LVL 7

Accepted Solution

by:
tomboshell earned 25 total points
ID: 9604813
I never did like NetBeans (I like Eclipse) but I did find these links.  
http://www.netbeans.org/products/ide/debug.html
http://debuggercore.netbeans.org/docs/HOWTOs/
0
 
LVL 14

Author Comment

by:StillUnAware
ID: 9605619
Thank you both, I'll consider all that, but first I'll try Codeguide, maybe this one will be the thing I need, if not there is JBuilder, maybe others.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This video teaches viewers about errors in exception handling.
Suggested Courses

737 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