Solved

Java runtime debugging with user interface?

Posted on 2003-10-22
7
331 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
Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

 
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

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

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

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
What You Need to Know when Searching for a Webhost Provider
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

734 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