A simple debugging library for Arduino and ESP32 that allows you to easily toggle debug code on and off.
- Download the library as a ZIP file.
- Open the Arduino IDE.
- Go to
Sketch
>Include Library
>Add .ZIP Library
. - Select the downloaded ZIP file.
Add the following to your platformio.ini
:
lib_deps =
https://github.com/LeeorNahum/SimpleDebug.git
To enable debugging, add #define DEBUG_ENABLE
before including the SimpleDebug.h
header file. Then use the DEBUG
macro to include debug statements in your code.
#define DEBUG_ENABLE
#include <SimpleDebug.h>