Utility: Enhanced Debugging (Read me please)
For windows, I noticed that stderr.txt in the directory that I was running wesnoth was collecting my error messages. Therefore, I didn't have to do a lot of rework.

You don't have to run wesnoth with any fancy flags, just use the APIs provided in debug.cfg and either look at the console (unix) or stderr.txt (windows) for debugging info.