??? 10/01/09 10:55 Modified: 10/01/09 10:55 Read: times |
#169331 - Debugging techniques Responding to: ???'s previous message |
Juergen Christoph said:
Print out the program and go through step by step on the paper with a pencil Andy Neil said:
It is an excellent suggestion and, as he said, would very quickly answer your question! A somewhat less laborious approach would be to run the code in a Simulator - there you could single-step it and watch exactly what happens. If you had a chip with on-chip debug, you could use that to single-step in the real hardware and watch exactly what happens. These are basic and very powerful debugging techniques - make the most of them! More tips here: http://www.8052.com/faqs/120313 |