Skip to main content

Introdunction

Debugging is an important aspect of IT.
We have to remember to follow the important 6 steps for debugging a problem:

1. The first step is to check that the error is reproducible.
2. Be sure that you know exactly what the problem is.
3. Check all of the “obvious” error sources.
4. Apply basic strategy of debugging:
Isolate the problem by dividing the operation into those parts that are working and those that are not.
"The best approach is to step through the process from BEGINNING TO END, comparing what should be happening with what is happening."
5. When you reach a dead end in debugging, it's time to reassess your info.
Question where wrongful assumptions/conclusions could have been made.
Carefully walk through process again.
Locating the bug can be a hard process.
Locating takes experimentation
6.Walk through process making sure all functions that should be happening are happening.
These 6 steps are very important to follow when debugging a problem on the computer. There is a difference between debugging and troubleshooting.
Troubleshooting: solving a problem, basically an end product of fixing a problem.
AND
Debugging: is the process/steps to solve the problem, such as: removing an error on the computer.
Example: A teacher is having a hard time starting the computer. By following the steps ask the teacher is he/she has the computer plugged in. It so happens that the computer was not plugged in. The process that the IT person took was the debugging process.
Troubleshooting: Figuring out the computer was not plugged in. The final product.

Exception Details

What is an Exceptions ?
An exception is an event that occurs during the execution of a program, and requires the execution of code outside the normal flow of control. There are two kinds of exceptions: hardware exceptions and software exceptions. Hardware exceptions are initiated by the CPU. They can result from the execution of certain instruction sequences, such as division by zero or an attempt to access an invalid memory address. Software exceptions are initiated explicitly by applications or the operating system. For example, the system can detect when an invalid parameter value is specified.

Exception causes application terminate.
- Hang Application: Application Hang may arise due to Deadlock or High CPU usage.
- Crash Application: Application Crash Aries due to unhandled exception



Exception Dispatching

Comments