Browse DevX
Sign up for e-mail newsletters from DevX


Use the Java Debugger to Determine the Causes of Errors : Page 4

Although the Java Virtual Machine frees programmers from many low-level tasks like garbage collection, it can't protect them from mistakes in design and logic. This article explores the Java Debugger, which you can use to trace through a running program and determine the causes of any errors.




Building the Right Environment to Support AI, Machine Learning and Deep Learning

Effective Debugging as a Software Engineering Skill
And really, that's all there is to JDB! The debugging facilities in Java development suites like those from IBM and Borland may operate differently (although, the command-line JDB program always will be available), but the principles are exactly the same. Setting breakpoints and stepping through lines of code still are the major components of debugging.

One of the most important phases of software development is making certain that the application performs correctly and executes all the functions in its specifications. In software engineering, preventing program defects is easier than correcting them, and fixing problems during development is better than doing so after the application has been released or deployed. That's why effective debugging is a skill that every programmer must acquire.

If you can master the concepts in this article, then you can finely monitor execution of your program during a debugging session and understand precisely why the program's output is the way it is and why program decisions (like branching) are made the way they are.

David M. Williams is an Australian I.T. writer, trainer, and consultant. He is the author of Win32 Font Lister and other shareware programs. Reach him by e-mail at dave@qed.newcastle.edu.au.
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date