Simple Debugging Methodology

You labored hard on some procedures, they compile (so no syntax errors), but they don't work correctly. What do you do? How do you go about troubleshooting the problem? This section describes a troubleshooting methodology that works for me.

The first thing I take note of is what kind of error I'm experiencing. If you are not employing an error-handling mechanism (see the next section), this step is easy because, as you'll remember, a runtime error will always display itself clearly while a logical error merely produces errant results. If you are using error handling, the distinction may not be so obvious and you may need to do some sleuthing using the tools described earlier to figure out what exactly is going on.

0 0

Post a comment