Solved

Java runtime debugging with user interface?

Posted on 2003-10-22
7
317 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 14

Author Comment

by:StillUnAware
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
java set up 1 46
Core Java. What output will be and why ? 6 58
JDeveloper 12c for 32 bit 4 34
Java DateChooser? 2 0
Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
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 basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

743 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

12 Experts available now in Live!

Get 1:1 Help Now