Complete.Org: Mailing Lists: Archives: freeciv-ai: May 2003:
[freeciv-ai] Re: DEBUG
Home

[freeciv-ai] Re: DEBUG

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Olivier DAVY <olivier.davy@xxxxxxx>
Cc: freeciv-ai <freeciv-ai@xxxxxxxxxxx>
Subject: [freeciv-ai] Re: DEBUG
From: Mike Kaufman <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 9 May 2003 08:49:52 -0500

On Fri, May 09, 2003 at 09:23:14AM +0200, Olivier DAVY wrote:
> Hi everybody,
> 
> could you please tell me how to set the different level of trace (or log) to 
> debug the app.

% ser -d 3

will give you verbose output, but I think you want:

% ./autogen.sh --enable-debug=yes

so you can do debug level 4:

% ser -d 4:advmilitary.c,500,700:packets.c,300,500

I believe is the corrent syntax. so you get all normal and verbose log
messages and the debug log messages between lines 500-700 in advmilitary.c
and between 300-500 in packets.c You can also change AI log levels to a
lower level in ailog.h
 
> P.S. : try not to divide by zero ;)

there was a fix for a divide by zero error made recently.
make sure you have an up-to-date cvs.

-mike


[Prev in Thread] Current Thread [Next in Thread]