2 ms·
Print debugging is fine in an environment where the edit/compile/run cycle is fast or doesn't even exist. In fact it's probably the easiest way to debug in such
by taylodl 6y ago
Print debugging is fine in an environment where the edit/compile/run cycle is fast or doesn't even exist. In fact it's probably the easiest way to debug in such environments.
What I've been thinking about is a code generation tool where I can specify the variable(s) I want to watch and it takes the original code as input and produces code with traces everywhere that variable is referenced or modified. If you're going to do print debugging then let's go all the way!