Re: [CODE] debugging tics not updated stuff

From: Thomas Katzlberger (cat@vuse.vanderbilt.edu)
Date: 10/04/96


You wrote:
> __LINE__
> __FILE__

> some input here. It would be pretty handy if this works, to put it
> into the std. CircleMUD distribution :)

Line and File are macros that are put in by the preprocessor.
Hence completely unuseable for your purpose.
See assert.h for a sample of its use.

The best way to get hold of bugs in circle is to do corefile-debugging
with a sourcelevel debugger like gdb. Anything else is pure waste of
time. It will help you spot the exact location where your program
crashed and display the line of code that caused it.

Cat.
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST