Simple debug supporting code

This is something I am using on my project that might be useful to others. It is a simple wrapper around ServicePortSerial that allows one to globally enable/disable debugging with a single define. When disabled, it compiles down to nothing so you can even keep your debug lines in your project without having to keep commenting/uncommenting things everywhere all the time.

It does not solve the issue that debug statements eat on storage and memory space pretty fast if you overdo it, but it is only relevant when debug is enabled anyway.

1 Like