- Found in:
- Vanilla
Description
Wiki Description
Outputs a string to the Papyrus log on disk, and the Papyrus debug text page. But only if the condition is true.
Documentation String
As Trace() but takes a second parameter bool ShowTrace (which if false suppresses the message). Used to turn off and on traces that might be otherwise annoying.
Documentation Comment
Suppressable Trace
Parameters
stringTextToPrint
CK Wiki Description
The text that should be printed to the log and text page.
boolShowTrace
CK Wiki Description
If true, the trace is printed out, otherwise it is eaten by the function.
Examples
; Output "Hello World" to the log, but only if the bdebug variable is true
Debug.TraceConditional("Hello, World!", bDebug)Auto-Generated Example
string myString__TextToPrint
bool myBool__ShowTrace
Debug.TraceConditional(myString__TextToPrint, myBool__ShowTrace)Related Pages
- Debug
- Debug.MessageBox(...)
- Debug.Notification(...)
- Debug.Trace(...)
- Debug.TraceAndBox(...)
- Debug.TraceStack(...)
