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.
Bill
The standard IDE doesn't have the capability.
the arduino IDe is an editor, and then it compiles and uploads it into the micro.
However there are some other programming tools that will let you see the variables, and even change them on the fly.
12blocks is something that might help, but I'm not sure if Hanno allows an existing sketch to be imported.
MegunoLink is another that allows data to be sent via the serial.
MegunoLink | A development and user interface tool for your embedded projects
Debugging is a painful game, best served with simple but meaningful serial print commands.
If possible add a delay so it doesn't fly past, and try to concentrate on one section only at a time.
I've also flashed an LED before.
Maybe you could upload the code (use the >> syntax highlighting) and indicate what isn't working, and someone might be able to assist.
I know how frustrating it can be sometimes, and then when you find it you go duuh.
mark
Alternatively you can port your project to Atmel Studio and use the AVR Dragon to single step through your code.
Alternatively you can port your project to Atmel Studio and use the AVR Dragon to single step through your code.