Closed jeffkowalski closed 7 months ago
Typically, in a platformio.ini - centric way, one would define two different default targets (e.g. ...:debug and ...:release) with appropriate -DDEBUG=1 in debug and perhaps optimization flags in release. (There's no reason to have symbol preservation with -g, because our hw platforms don't readily support live debugging).
But the key question is - how do you expect to have this work in your dev env? For VSCode, I'm not sure how one selects between the debug/release targets. (I know how I do it in emacs, but that's my happy island).
How should it work?
Checkin 142e910 implements these:
Brian says: Figuring out how to get Debug and Release builds in PlatformIO should be easy but I don’t know how yet. Set up the code so that LOGI (informational logs) don’t get emitted in release mode.