Background for Fallout 4
Member of the Debug script
voidfunctionTraceStack(stringasTextToPrint="racing stack on request", intaiSeverity=0)NativeGlobal

Description

Wiki Description

Outputs a string to the Papyrus log on disk, and the Papyrus overlay. It also attaches a full callstack so you can see who called you (and who called them and so on).

Documentation Comment

Outputs the current stack to the log


Caveats


Parameters

stringasTextToPrint="racing stack on request"

CK Wiki Description

The text that should be printed to the log and text page.

intaiSeverity=0

CK Wiki Description

The severity of the trace statement. Info, the default, will show up as green; warnings will show up as yellow; and errors as red; in the Papyrus debug text page.

  • The following values are acceptable:* 0:Info
    • 1:Warning
    • 2:Error

Examples

; Outputs "Tracing stack on request" along with a full stacktrace to the log
Debug.TraceStack()
; Outputs "Tracing stack on request" along with a full stacktrace to the log, at error severity (colored red)
Debug.TraceStack(aiSeverity = 2)

Auto-Generated Example

string myString__asTextToPrint
int myInt__aiSeverity

Debug.TraceStack(myString__asTextToPrint, myInt__aiSeverity)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.