Is it possible to debug the code without using a 'ICD programmer' or simply no programmer connected at all?
All I want to do is put breakpoints in my code and see if the function is being executed or not.
I tried to put '#device ICD=true' in my code and it allows me to Enable Debugging and browse the debug windows, but doesn't allow me set breakpoints. I cannot find the 'ICD-USB driver' in the Device Manager. I tried to re-install the drivers again from the website, but still cannot see them in the Device Manager.
If a programmer needs to be connected for debugging, is it possible to use the 'melabs U2 programmer' and debug the code?
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Re: Help with using the debug feature
Posted: Wed Nov 07, 2018 12:20 pm
Jeetdesai wrote:
Is it possible to debug the code without using a 'ICD programmer' or
simply no programmer connected at all?
All I want to do is put breakpoints in my code and see if the function is
being executed or not.
Put in a printf or a putc statement. If you see 'A' displayed on TeraTerm
then you know it executed the function. Example:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum