I have a number of sections in my code and I can't follow it with all the variables. I think it would be much easier with single step.
I have a number of sections in my code and I can't follow it with all the variables. I think it would be much easier with single step.
Since Arduino is C++ based, you may be able to lift some bits of the code and write test-code for it to run on your workstation, or step through it there. You would have to provide dummy functions for the Arduino bits - but consider those places to insert test conditions. You could then step through it with Visual Studio or GDB gui (like the stuff in Eclipse CDT), or write your test code to verify the results.
Since Arduino is C++ based, you may be able to lift some bits of the code and write test-code for it to run on your workstation, or step through it there. You would have to provide dummy functions for the Arduino bits - but consider those places to insert test conditions. You could then step through it with Visual Studio or GDB gui (like the stuff in Eclipse CDT), or write your test code to verify the results.
To be honest; then go the length and use Atmel Studio. It's a PITA to download (near 1 GB?) but with a proper debugger you'll be asking yourself how you've ever written code without it. Single stepping, breakpoints on interrupts (also on BAD_ISR), watching values in tables / structs... Invaluable for larger projects.