Enable Debug Logging

Revision as of 00:45, 2 August 2016 by imported>Qazaaq (Added some style, changed some wording, and fixed wiki links)

The Debug Script offers many methods for diagnosing and tracing execution of Papyrus scripts. The following are some of the most commonly used.

 Debug.Trace("This message is written to the papyrus log file.")
 Debug.Notification("This message is displayed on the HUD menu.")
 Debug.MessageBox("This message is displayed in a message box.")
 Debug.CenterOnCell("QASmoke")
 Debug.DumpEventRegistrations(self)


However, these methods will not work unless you enable logging:

  1. Open the file : ..\Documents\My Games\Fallout 4\Fallout4Custom.ini
  2. Populate the Fallout4Custom.ini file with the following:
 [Papyrus]
 bEnableLogging=1
 bEnableTrace=1
 bLoadDebugInformation=1
 bEnableProfiling=1
 sDefaultLogOverlay=Papyrus


NOTE Log output from Papyrus will be written to ..\Documents\My Games\Fallout 4\Logs\Script\Papyrus.0.log or ..\Documents\My Games\Fallout 4\Logs\Script\User\ if you have configured a user log.