Convenience functions to easily debug your C code.
void function(void) {
trace();
// rest of the function
}
int main(void) {
int i = 1;
debugi(i);
}
Print a debug message with a string value and function name.
const char[] str = "hello";
debugs(str); // prints "(nameOfTheFunction) str: hello"
Print a debug message with an integer value and function name.
int i = 42;
debugi(i); // prints "(nameOfTheFunction) i: 42"
Print a debug message with a float value and function name.
float f = 3.14f;
debugf(f); // prints "(nameOfTheFunction) f: 3.14"
Print a debug message with an unsigned integer value and function name.
unsigned int u = 123;
debugu(u); // prints "(nameOfTheFunction) u: 123"
Print a debug message with an unsigned long value and function name.
unsigned long u = 123;
debuglu(u); // prints "(nameOfTheFunction) u: 123"
Print the function name (trace call).
trace(); // prints "nameOfTheFunction()"
Logs a string with its function name
logs("message"); // prints "(nameOfTheFunction) message"