Solved

Java runtime debugging with user interface?

Posted on 2003-10-22
7
320 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
  • 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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
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

Superior storage. Superior surveillance.

WD Purple drives are built for 24/7, always-on, high-definition security systems. With support for up to 8 hard drives and 32 cameras, WD Purple drives are optimized for surveillance.

Question has a verified solution.

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

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
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…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

867 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now