Solved

Java runtime debugging with user interface?

Posted on 2003-10-22
7
322 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This video teaches viewers about errors in exception handling.

809 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