Well how do you guys debug GPC when you are testing new features you have written?
----------------------------------------------------------------------- C. Adam Oldham Marconi Commerce Systems Inc. Software Engineer 7300 West Friendly Ave. adam.oldham@marconi.com Greensboro, NC 27420-2087 Phone : 336.547.5952 Fax : 336.547.5079 ----------------------------------------------------------------------- This document contains confidential information of Marconi Commerce Systems Inc. In consideration of the receipt of this document, the recipient agrees not to reproduce, copy, use or transmit this document and/or the information contained herein, in whole or in part, or to suffer such actions by others, for any purpose except with written permission, first obtained, of Marconi Commerce Systems Inc., and further agrees to surrender the same to Marconi Commerce Systems Inc. upon demand. -----------------------------------------------------------------------
Oldham, Adam wrote:
Well how do you guys debug GPC when you are testing new features you have written?
Only speaking for myself, not Peter, I usually write a series of test programs (in the test suite in the GPC sources) to test every conceivable use or misuse of the new feature and whether GPC handles them right (i.e., accepts all legitimate uses and rejects all invalid ones, possibly different with different dialect or other options). Of course, I also test manually the cases in my real code (or others' code, posted to the list) which caused the need for the changes.
After each change, I let the test suite run (under Linux and DJGPP), and if any problems are found, I fix them (which then is usually not too hard because I know which changes to GPC caused them).
I use gdb on gpc1 rather rarely, and mostly only to get the code position of a crash or something.
Frank