SetDebugMode
From GECK
A function added by the Fallout Script Extender.
Description
Toggles debug mode for all scripts belonging to a mod. When called in the console, the mod index of the mod for which debug messages are to be toggled can be specified by the second parameter (in decimal, not hexadecimal, format).
Syntax
SetDebugMode bEnableDebugMessages:int modIndex:int
Or:
DBMode bEnableDebugMessages:int modIndex:int