Little Helper on Debugging: Arduinotrace (not mine)

Hi folks,

Serial.print() is often recommended to debug a program, which does not behave like the programmer intends to. A drawback is that one needs to write a lot of code to do so.

Being lazy I was looking for an alternative and have found this one:

And is really cool! Just add, e.g., DUMP(myVariable) into the code and you get on serial monitor:

20:04:51.527 -> NanoEveryISR_v1d1.ino:38: myVariable = 10

Note: DUMP(myVariable) is in line 38 of NanoEveryISR_v1d1.ino

Or, TRACE() is placed in line 39 (inside setup()):

20:04:51.527 -> NanoEveryISR_v1d1.ino:39: void setup()

...so easily to check which code is executed (instead of writing Serial.print("Passed first "if" of function A"), Serial.print("Passed first "if" of function B"), etc.

So, usage highly recommened. And, by the way, I don't know the author of the tool ... it is just an information I like to share because it really helpful!

Only if you write a huge volume before testing your code.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.