I know there are many popular and useful Design Patters.
Are there something like them for debugging scenarios? Maybe not patterns but methodologies which are categorized and that can be used repeatedly for similar cases.
Debugging itself is a very difficult process because of the involvement of humans. Another reason due to which it is considered as difficult because it consumes a large amount of time and resources too.
There are two types of debugging techniques: reactive debugging and preemptive debugging. Most debugging is reactive — a defect is reported in the application or an error occurs, and the developer tries to find the root cause of the error to fix it.
Isolate the source of the bug. Identify the cause of the bug. Determine a fix for the bug. Apply the fix and test it.
I'll add one more debugging pattern that seems fairly obvious, but hasn't been said yet:
Reduce the bug to the smallest case possible, and then use that as your unit test for any proposed fix.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With