I was just wondering if there's a Java IDE that lets you step thru
code
and examine the values of variables and such.
Ken - 06 Oct 2007 05:53 GMT
> I was just wondering if there's a Java IDE that lets you step thru
> code
> and examine the values of variables and such.
There are a number of them. I use NetBeans. It is free, but others will
differ in their recommendations. Eclipse is also popular.
If you get NetBeans and you are primarily looking for a good debugging
platform, you should probably stay away from the beta. It works pretty
well, but I've noticed a few problems when debugging with it. The 5.5
version works great.
Lew - 06 Oct 2007 06:27 GMT
> If you get NetBeans and you are primarily looking for a good debugging
> platform, you should probably stay away from the beta. It works pretty
> well, but I've noticed a few problems when debugging with it. The 5.5
> version works great.
I'm using NB 6 beta and have not noticed trouble with the debugger. What
scenarios give you difficulty, and what are the symptoms?
FWIW I'm using NB 6b on my Fedora Core 7 box.

Signature
Lew
Kenneth P. Turvey - 06 Oct 2007 10:16 GMT
>> If you get NetBeans and you are primarily looking for a good debugging
>> platform, you should probably stay away from the beta. It works pretty
[quoted text clipped - 5 lines]
>
> FWIW I'm using NB 6b on my Fedora Core 7 box.
If you hit the step button too quickly it starts a new instance of the
program with you stepping into main. That's the big one. I've found it
quite annoying when I'm trying to just get through a few lines of code.
I'm using it on Ubuntu, but it shouldn't matter.

Signature
Kenneth P. Turvey <kt-usenet@squeakydolphin.com>
Thomas Kellerer - 06 Oct 2007 10:38 GMT
Kenneth P. Turvey wrote on 06.10.2007 11:16:
>> I'm using NB 6 beta and have not noticed trouble with the debugger. What
>> scenarios give you difficulty, and what are the symptoms?
[quoted text clipped - 6 lines]
>
> I'm using it on Ubuntu, but it shouldn't matter.
I'm using the NetBeans daily builds on a Windows XP machine with JDK 1.6, and I
have never noticed this behaviour. Which Java version are you using?
Thomas
Kenneth P. Turvey - 19 Oct 2007 17:17 GMT
> Kenneth P. Turvey wrote on 06.10.2007 11:16:
>>> I'm using NB 6 beta and have not noticed trouble with the debugger. What
[quoted text clipped - 10 lines]
> I'm using the NetBeans daily builds on a Windows XP machine with JDK 1.6, and I
> have never noticed this behaviour. Which Java version are you using?
Latest of 1.6. On Linux running Ubuntu.

Signature
Kenneth P. Turvey <kt-usenet@squeakydolphin.com>
Mike Schilling - 06 Oct 2007 08:02 GMT
> I was just wondering if there's a Java IDE that lets you step thru
> code
> and examine the values of variables and such.
Almost all of them. There's a console program called jdb that also allows
this; it comes as part of the JDK.
Roedy Green - 06 Oct 2007 10:57 GMT
On Fri, 05 Oct 2007 21:16:28 -0700, "mike7411@gmail.com"
<mike7411@gmail.com> wrote, quoted or indirectly quoted someone who
said :
>I was just wondering if there's a Java IDE that lets you step thru
>code
>and examine the values of variables and such.
That is pretty much standard now. Check out Netbeans, Eclipse,
IntelliJ.
see http://mindprod.com/jgloss/ide.html
It is a lot slicker than the old days when you single stepped machine
language, and saw all the values in hex with no variable names.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Roedy Green - 06 Oct 2007 11:00 GMT
On Fri, 05 Oct 2007 21:16:28 -0700, "mike7411@gmail.com"
<mike7411@gmail.com> wrote, quoted or indirectly quoted someone who
said :
>I was just wondering if there's a Java IDE that lets you step thru
>code
>and examine the values of variables and such.
Java now has an API for IDEs to use to do the debugging. The IDE needs
only provide the visual shell. All the weird tricky stuff is built
in. This means it is a lot less work now to add reliable debugging to
a browser. The pleasant net result for us programmers is debugging is
becoming standard.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Lew - 06 Oct 2007 15:19 GMT
> Java now has an API for IDEs to use to do the debugging. The IDE needs
> only provide the visual shell. All the weird tricky stuff is built
> in. This means it is a lot less work now to add reliable debugging to
> a browser. The pleasant net result for us programmers is debugging is
> becoming standard.
This API is very powerful. It can be used, for example, to hotswap versions
of a class without taking down the JVM.

Signature
Lew
Daniel Pitts - 06 Oct 2007 18:09 GMT
> I was just wondering if there's a Java IDE that lets you step thru
> code
> and examine the values of variables and such.
I personally prefer IntelliJ IDEA, but its a commercial product (you
have to pay for it). You *can* get a free trial though. Older versions
of it sucked, but since 5.0 (they're on 7.0 now) its been much better.
There are some free alternatives (others have replied with them). I
don't use them so I can't comment.
Although, I think Java comes with a free text based debugger. jdbg maybe.
IDEA also has good support for Refactoring, code search, ANT, and it has
tons of plug-ins.
Hope this helps,
Daniel.

Signature
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>