A bit of inspiration most weekdays for exploring your mindset .

🐾Leave traces in code

Khem Raj September 10, 2025 #meta

Computer systems are complex and various sub-system might be brought up in parallel. Imagine debugging such system's boot process. It's almost like searching for a needle in haystack. Boot processes are special because there are few debug tools that can be used. It gets better as the system boots into user space.

A good debug method/help is to emit traces at certain events, these traces can be printed on to early devices available to system e.g. console, serial port, terminals, this narrows down the problem area quickly and getting to root of problem becomes easier and quicker.

Traces could be made dynamic where one can turn them to be more chatty at times and normal all other times.

This is how I saved my day today debugging a system that would not boot to a login shell