2014-01-15

izard: (Default)
2014-01-15 07:28 pm
Entry tags:

More printfs for debugging, hardcore.

My favorite debugging method is to insert as many printf's as possible everywhere.... (That is a terrible confession to make, but I am obviously guilty). Besides obvious drawbacks, one thing that bugs me most is that I have to change/insert/delete printf, rebuild, re-deploy, re-run.

Today I've found that Windriver workbench has a nice feature - dynamic printf. It saves recompile-redeploy-rerun step, and allows inserting printfs to an application running on an embedded target. Seems Lispy a bit, brings one of REPL advantages to low level C development. See how it works at 3:46 in the video: http://vimeo.com/40272483.