Web Tool Bag  
Home · Articles · Downloads · Discussion Forum · Web Links · News Categories · Synonyms DatabaseJuly 14 2024 23:56:27
Discussion Forum
Web Links
News Categories
Synonyms Database
Users Online
Guests Online: 1
No Members Online

Registered Members: 856
Unactivated Members: 118
Newest Member: lakim
Forum Threads
Newest Threads
Error: Cannot find m...
Uncaught Error: _reg...
Module build failed:...
mochi script questions
Hottest Threads
Installation [12]
Any questions and... [5]
Captcha picture d... [4]
Integrate with Vi... [4]
Mods: Sucess/Than... [4]
Latest Articles
Ubuntu: the vpn conn...
Howto Install HP Pri...
ReactJS progress met...
How to Remove an Error
I've intentionally separated the act of examining a program's execution from the act of fixing an
error. But of course, debugging does also mean removing the bug. Ideally you will have perfect
understanding of the code and will reach an A-Ha! moment where you perfectly see the error and
how to fix it. But since your program will often use insufficiently documented systems into which
you have no visibility, this is not always possible. In other cases the code is so complicated that
your understanding cannot be perfect.
In fixing a bug, you want to make the smallest change that fixes the bug. You may see other things
that need improvement; but don't fix those at the same time. Attempt to employ the scientific
method of changing one thing and only one thing at a time. The best process for this is to be able
to easily reproduce the bug, then put your fix in place, and then rerun the program and observe
that the bug no longer exists. Of course, sometimes more than one line must be changed, but you
should still conceptually apply a single atomic change to fix the bug.
Sometimes, there are really several bugs that look like one. It is up to you to define the bugs and
fix them one at a time. Sometimes it is unclear what the program should do or what the original
author intended. In this case, you must exercise your experience and judgment and assign your
own meaning to the code. Decide what it should do, and comment it or clarify it in some way and
then make the code conform to your meaning. This is an intermediate or advanced skill that is
sometimes harder than writing the original function in the first place, but the real world is often
messy. You may have to fix a system you cannot rewrite.

by Robert L. Read

Posted by admin on July 12 2010 10:04:12 5797 Reads · Print
Rating is available to Members only.

Please login or register to vote.

No Ratings have been Posted.


Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Member Poll
Which PHP framework do you preffer?





eZ Components






You must login to vote.
You must login to post a message.

03/10/2011 18:17
Hi, How to remove Register from Login screen? I don't want them to register and have full access! if you leave register then they should not have any rights until the admin assigns them

26/09/2011 08:28
Please describe your problem with more details. Thank you.

22/11/2010 18:31
Help. There was a problem with the request; error regarding feedbackzdr form program

Custom web software development by Devzone Tech
Copyright © 2024 - www.webtoolbag.com