Add the following lines to your trainzoptions.txt file
-Debug -EnableScriptMessageLogging -EnableScriptLogging