Go to Post Now that the robot is shipped, maybe I can get to bed before the alarm clock goes off =] - DarMagi [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Spotlight this post!  
Unread 09-12-2004, 00:39
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: c debugger

Quote:
Originally Posted by Dave Flowerday
Mike,
In the software world, a "debugger" is a tool that helps you find bugs in your code. It does not find them for you*, unfortunately! Typically it allows you to step through the code line by line, look at the contents of variables, change memory on the fly, etc. Instead of the program running at full speed, you can see what each line does to variables and which "if" statements are evaluated to TRUE and which are FALSE, etc. In jobs like mine where we write very low level embedded software (device drivers, etc) a good debugger is a necessity.

Unfortunately, I'm not aware of a debugger that can be used with the IFI system, which is really a shame. In order to debug, teams are forced to use printf()s inside their code instead, which many seasoned programmers consider a fairly primitive way of debugging (though some swear by it). However, Rob Bayer has created a Robot Controller Simulator which can serve a very similar purpose as a debugger and will likely be useful for testing code for a lot of teams this year.

* Side note: there are a few tools out there which can find some types of bugs for you automatically. One that comes to mind that I used in college is called Purify, and it can tell you if your program ever uses uninitialized memory, fails to free memory, walks off the end of an array, etc. Very useful, of course, but it doesn't come anywhere close to finding all the types of bugs that can creep into a project.
It is pic based and therefore has native ICD(in circuit debugging) capabilities and they integrate with MPLAB. Unfortunately you need to buy a tool, and open up the RC just to hook the tool up.
__________________
1139 Alumni
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debugger and Simulation in new IDE? authgeek1218 Programming 1 08-12-2003 18:39


All times are GMT -5. The time now is 14:07.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi