CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Help with using the debug feature

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Jeetdesai



Joined: 05 Jul 2018
Posts: 18

View user's profile Send private message

Help with using the debug feature
PostPosted: Wed Nov 07, 2018 12:05 pm     Reply with quote

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

View user's profile Send private message

Re: Help with using the debug feature
PostPosted: Wed Nov 07, 2018 12:20 pm     Reply with quote

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:
Code:
void my_function(void)
{
putc('A');
.
.
.
.

}
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group