Library not finding platform libraries during build?

I’ve got a serial protocol that I’m decoding with a class. My serial handler feeds bytes to the decoder and it handles parsing into a data structure based on the packet type etc.

I would very much like to write a test case for each part of the protocol, and feed it particular byte sequences to verify what the internal variables have in them throughout the decode. I don’t know of any way to set breakpoints and collect debug data from the arduino-teensy application while it’s executing on the device.

If I implement another part of the serial protocol and get it wrong, I can’t debug that mistake, except to litter the class with Serial.println() statements, and see what gets sprayed back on the terminal!

It seems relatively common in the embedded software world to use Google Test framework and CMake to create unit tests that execute on the build host (optionally in your IDE with breakpoints set!). This would let me step through my code, watching the variables and quickly find my mistakes :slight_smile: