More printfs for debugging, hardcore.
Jan. 15th, 2014 07:28 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
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.
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.