• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Principles of debugging

Cowboydave

Nervous Newbie
Joined
Dec 4, 2013
Messages
18
Likes received
0
Thanks received
0
I just wanted to reach out to you guys, with what I have learned about debugging complex systems.

Debugging systematically is about simplifying the problem to the smallest possible number of moving parts, without masking the problem. So if there are three moving parts I lock down two of them (part A, part B) with a snapshot of their dynamic states (*) and then I observe the behaviour of the third (part C). If that is correct, then I rotate the test through to the next part, locking down part A and part C and observing part B.

This is otherwise known as a "process of elimination". This works for electronics, software, interpersonal issues in teams :)

(*) you must lock the moving parts down in a valid state to keep the debugging scenario realistic.
 

Advertisers

Back
Top