6 #ifndef SMINGCORE_DEBUG_H_ 7 #define SMINGCORE_DEBUG_H_ 9 #include "HardwareSerial.h" 12 #include "../Services/CommandProcessing/CommandProcessingIncludes.h" 87 bool useDebugPrefix =
true;
88 bool newDebugLine =
true;
93 size_t write(uint8_t);
Delegate< void(char dbgChar)> DebugPrintCharDelegate
Delegate constructor usage: (&YourClass::method, this)
Definition: Debug.h:17
Provides debug output to stream (e.g. Serial) or delegate function handler.
Definition: Debug.h:47
void initCommand()
Enable control of debug output from CLI command handler output.
Provides formatted output to stream.
Definition: Print.h:31
void setDebug(DebugPrintCharDelegate reqDelegate)
Configure debug to use delegate handler for its output.
Do not use debug prefix.
Definition: Debug.h:33
DebugClass Debug
Global instance of Debug object.
Definition: CommandOutput.h:17
eDBGPrefix
Debug prefix state.
Definition: Debug.h:31
Structure for debug options.
Definition: Debug.h:22
Use debug prefix.
Definition: Debug.h:34
bool status()
Get debug status.
void start()
Start debug output.
void stop()
Stop debug output.
DebugClass()
Instantiate a debug object.