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 support@ccsinfo.com

Debugging guide?

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



Joined: 09 Jun 2004
Posts: 52

View user's profile Send private message

Debugging guide?
PostPosted: Wed Oct 07, 2015 9:10 am     Reply with quote

PIC16F887, ICD-U40, CCS v4.069, CCSLoad

Is there a beginners guide to using the debug features of the compiler? I don't even know where to start.

Cheers,
Steve
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Thu Oct 08, 2015 8:49 am     Reply with quote

There is no guide that i know of, because unlike a 'pure' software issue, real world PIC design has more than just your code that can cause trouble or confusion. A PIC design implies hardware in the equation and troubled circuitry can be as baffling as shaky code.
I've never even tried to use a "debugger" other than ad hoc methods as best
suits the problem at hand.

Inserting soft RS232 reporting breakpoints, toggling uncommitted pins and such are mainstay of my own debug work.
Use of debugger-mode breakpoints is NOT
as it can screw with critical timing. And a lot of what i design is very time critical.

The most powerful debug tool there is is not hardware or special code -
it lies between your ears.

Hopefully wiser heads than mine will weigh in too.
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