witnessmenow / Universal-Arduino-Telegram-Bot

Use Telegram on your Arduino (ESP8266 or Wifi-101 boards)
MIT License
1.12k stars 306 forks source link

Enabling Debugging Without Modifying the Library #357

Open ldijkman opened 3 months ago

ldijkman commented 3 months ago

Chat GPT Enabling Debugging Without Modifying the Library Given your original attempt:

define TELEGRAM_DEBUG 1

define _debug 1

include

This should work in theory, assuming the library checks for these macros somewhere in its implementation (.cpp files or within the .h file beyond the point of their definition).

stuck would like to enable Arduino Telegram Library Serial Monitor debugging from my source without modifying library https://github.com/witnessmenow/Universal-Arduino-Telegram-Bot/blob/601a1f45556409cf45781bf2ddfb8a36f5bf8829/src/UniversalTelegramBot.h#L25 https://github.com/witnessmenow/Universal-Arduino-Telegram-Bot/blob/601a1f45556409cf45781bf2ddfb8a36f5bf8829/src/UniversalTelegramBot.h#L38

https://t.me/Luberth_Dijkman