If by debug mode you mean the switch that makes game to generate debug output that can be monitored with DbgView program - just run the game exe with -debugoutput switch at the end.
To read databases you need one of two available database editors - standalone DWEdit by Ludger or DWDBEdit - MS Acces based db editor made by jsteed. The second is though to be better but don't work for me, calls for mising libraries or files, wrong version of Acces or something... The first works great, this is what we use for modding.
You will find both editors on Subguru's site probably:
www.subguru.com
Cheers!