I was wondering what all of you use to test your code before you push it to the controller?
I would like to be able to add printlns and run the code to see what variable values are during runtime to ensure that the controller is doing what I expect it to do.. What is the best way that you know of?
Best way to debug
Re: Best way to debug
Serial.println() function. Then view in Serial Monitor
Re: Best way to debug
I try to step through the logic of the code. then I add the debug print statements (like Lee said). and then I push it to my controller to test.
we don't have an emulator for the controller to test out before you run it.
Sent from my XT1585 using Tapatalk
we don't have an emulator for the controller to test out before you run it.
Sent from my XT1585 using Tapatalk
Re: Best way to debug
Thanks! I'll do that once I get my replacement cable.
What do you use to serial into it?
I'm used to using putty. I'm assuming that it will work as long as I select the right com port.
What do you use to serial into it?
I'm used to using putty. I'm assuming that it will work as long as I select the right com port.
Re: Best way to debug
The arduino gui has it built in. Look for Serial Monitor under Tools I believe
Re: Best way to debug
It's the little magnifying glass in the upper right corner.