Debug system

I do something wrong with pointers and got seg.fault.
Question: cataclysm has debug to out in file without stop the game? How to use it?

I think

DebugLog() << "some debug message";

is the easiest way to write stuff to a file for debugging. It writes to “logg.txt”.

The debug messaging system is in need of a cleanup itself.