software:machetedebugging
Differences
This shows you the differences between two versions of the page.
— | software:machetedebugging [2021/07/21 12:57] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Machete Debugging ====== | ||
+ | |||
+ | // | ||
+ | |||
+ | {{: | ||
+ | |||
+ | The idea here is that you stop trying to make your code do whatever it was intended to do, and try to come up with code that displays that problem you just encountered, | ||
+ | |||
+ | The process of reducing the size of code necessary to reproduce the problem should result in you finding the problem yourself ~80% of the time -- it is a highly educational process. Programming errors can usually be reproduced in no more than one screenful of code, and quite often less. Exceptions to this are [[http:// | ||
+ | |||
+ | And if, after having no more than a couple of lines left, you //still// have not understood what the problem is, those few lines will make an // | ||
+ | |||
+ | Once you understood the issue, either by sudden realization or by having it explained to you by the friendly people at SO, fixing it in your //actual// program should be very easy. | ||
+ | |||