I was prompted to write about this because of a great article written by a fellow Internet Specialist, Steve Gomori. He took the same program that I did at the University of Winnipeg – Distance of Continuing Education. The post deals with the Online Databases, Perl, and PHP Course.
He mentions that the “smaller”, “trivial”, or “baby steps” of the script are brought to attention and tested on a regular basis. This I think is a critical phase that many educational programs and programmers leave out. Planning and debugging your scripts are crucial aspects of any web application. As one professor of mine has said, “There are many code monkeys out there for companies to hire, but what separates you from a high school programmer is your ability to plan, debug, and communicate your ideas effectively.”
Can any of you agree with the above statement? Debugging, and testing every single line of code may seem tedious at first, but in the end will actually save you time. Imagine writing 100 lines of code, just to find out that all you get is an error message. Now you have to retrace your steps through a lot of code, instead of just last couple lines of code.
Below I have listed several helpful debugging methods/tools:
If you have your own debugging techniques and/or tools for programming, share them in the comments below!
Tags: debugging
Though having used all the methods you list, there is another one: making unit tests while coding.
Yes, it takes time to write unit tests (but it’s coding, something we all know and love) but they sure are a nice tool to have, when something goes wrong ..
Yes. Unit testing is another part of testing and debugging your code. Something that should be done at all stages.
Twitter
Anyone know of a Multiple Image Uploader that automatically creates thumbnails? #php
RSS Feed
Keep up with all of our updates by subscribing to our RSS feed!
FaceBook
Join our group on Facebook and become a fan of us!