• Post Reply Bookmark Topic Watch Topic
  • New Topic

Anyone suggest a decent (FREE) debugger?  RSS feed

 
Marcus Laubli
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I threw all my java IDEs out over the weekend. I'm lost without a debugger.

I tried to install jSwat, however, it's having problems finding JPDA. I thought the JPDA.JAR file was part of tools.JAR In any case, I'm trying to run 1.4 and it's going to be a bear without being able to step through a program without a debugger.

Help!
[ February 28, 2005: Message edited by: Marcus Laubli ]
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
System.out.println() is your friend

Seriously, this is probably my primary debugging tool when I'm using a text editor and the command-line compiler. I am just recently trying to learn how to use NetBeans' debugger. Sometimes it seems like it is more of a pain than it's worth.

Layne
 
Horatio Westock
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use IntelliJ IDEA at work, and find it great - though not free!

I've been playing with NetBeans 4.1 at home, and it seems to do the job OK. I haven't tried any remote debugging with it yet though.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NetBeans and Eclipse (www.eclipse.org) are the two biggies in the "free" category. Depending on who you ask, one sucks, and the other is awesome.
 
Marcus Laubli
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ernest.

I guess I'll reinstall Netbeans. My NT box became unstable last week. I thought it had to do with the "backward" movement from Java 1.5 to 1.4.2 that I was asked to do for the Cattle Drive work I'm doing. Now that I have all traces of 1.5 out, I'm glad to consider going back.

It's just so much easier to work in an IDE!
 
Marilyn de Queiroz
Sheriff
Posts: 9080
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used System.out.println literally for years before I switched to something else. I still find myself using it by default, if for nothing else than narrowing the scope of where the problem lies.

The biggest problem with an IDE is that sometimes it does so much for you that you come away not really understanding why the stuff works (or doesn't work).
 
David Harkness
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My major reason for sticking to logging (rather than sysout) is for repeatability. You add enough logging to be able to track down the problem, and it will probably require repeated runs to nail it down and fix it. Then you disable DEBUG output for that class/logger. The reason you don't remove it is because you'll probably introduce another bug sometime later. If that happens, just enable DEBUG output and go through your routine again.

I save interactive debuggers for the last mile problem. You know where the bug is and must see the objects being modified step-by-step. But once you've fixed it, you remove the breakpoints and have to start all over again if you find another bug.
 
Marcus Laubli
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks everyone for you input.

The "damage" is already done! Netbeans works nicely with 1.4.2.

Marilyn, the specific problem is that

1) I have to mount and use Struts and
2) create a website using it and JSPs.

When I can do this, I have a potential employer who "could put me to work tomorrow". Believe me, this sounds good after being sick for almost 4 years! This is a new development, and I don't want to let it get away.

I'm really hoping that I can make Struts and Orion "sing" before a week from tomorrow, when we have our monthly JUG meeting.

I"ll be delighted to ( in fact, I really want to ) learn the ins and outs afterward.
 
kri shan
Ranch Hand
Posts: 1489
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try log4j...but i don't know whether it has a plug-in for IDEs.
 
David Harkness
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good luck, Marcus! I look forward to your posts on Struts. I'm only passingly familiar with it -- enough to know the basics and put together simple apps. I tend to stay below the presentation layer lately.
 
Junilu Lacar
Sheriff
Posts: 11169
160
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Marcus,

I prefer Eclipse myself. Worked with Netbeans a long time back but simply hated it. Of course, YMMV.

Here's some websites that has some pretty good Struts tutorials:
http://www.developer.com/java/ent/article.php/10933_2107401_1
http://www.arc-mind.com/downloads.htm
http://www.reumann.net/do/struts/main (seems to be down at this writing)
 
Hentay Duke
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used sysout for a long time. One day I was forced to use debug mode (working in WSAD, built with/similar to eclipse) now I can't live without debug mode. I wouldn't understand half of our application if I weren't able to step through it at some point. Plus with sysouts I had to re-start my server constantly, in debug mode I don't.
 
Marcus Laubli
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow! What resources!

I just went to the library and checked out Head First Servlets and JSP, by Bryan, Kathy and Bert. Now I'm motivated to learn what I've got to learn by Next Tuesday! I'll keep you posted

P.S. I'm actually coming to the computer for the first exercise right now!
[ March 01, 2005: Message edited by: Marcus Laubli ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!