Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What does it mean ...

 
nehal trivedi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI ALL !
What does it mean actually when you Debug the java code. in what ways it can help ?
I am working on a project in which I am mostly modifying the code from a previous student at the school.
I am using (trying to use) SunOne Studio as a learning experience towards really BIG projects. I want to learn the technology but am clueless about what to expect from the IDE .
Please give me some hints about things ... I understand the theoritical aspect, but not the practice ..How do I USE the IDE at its potential ?
Thank You,
Neh
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi nehal,
Most of old farts here would probably advise you to toss the IDE in the recycle bin and start coding with a text editor. As long as there have been bit flippers there has been a debate as to whether debugging was an art or a science. I feel it's a mixture of the two with a little more art or better experience. The first round of debugging generally is initiated by the compiler itself, which gladfully nitpicks all of your out of place parenthesis, undefined variables, etc. The more difficult phase occurs when the damn program doesn't do what you want it to. You can generally find most logic errors like that with stratgically placed System.out.prinln()s. Where IDEs do come in handy is with their built in symbolic debuggers, where you can set breakpoints, inspect varialble variables, etc. There is a lot to debugging, be it science or art, and more than anything it takes a lot of experience to become proficient at it.
Michael Morris
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wassisname said:
Most of old farts here would probably advise you to toss the IDE in the recycle bin and start coding with a text editor

I advise you to toss that particular IDE in the recycle bin for now and start coding with a IDE such as Eclipse or, for learning purposes, BlueJ.
When you are trying to make sense of someone else's code an IDE with its code browser and debugger can be very useful. Just the other day I was browsing sample code from a SCJD book and the IDE (Eclipse) pointed out several dubious coding glitches. For example, the code was accessing a static variable through the this reference.
[ March 27, 2003: Message edited by: Barry Gaunt ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic