[freeciv-ai] Re: DEBUG
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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.