TraceStack - Debug: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
imported>JLundin
No edit summary
m (Convert source tags to syntaxhighlight)
 
Line 7: Line 7:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Function TraceStack(string asTextToPrint = "Tracing stack on request", int aiSeverity = 0) native global
Function TraceStack(string asTextToPrint = "Tracing stack on request", int aiSeverity = 0) native global
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 25: Line 25:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; Outputs "Tracing stack on request" along with a full stacktrace to the log
; Outputs "Tracing stack on request" along with a full stacktrace to the log
Debug.TraceStack()
Debug.TraceStack()
</source>
</syntaxhighlight>
<br/>
<br/>
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; Outputs "Tracing stack on request" along with a full stacktrace to the log, at error severity (colored red)
; Outputs "Tracing stack on request" along with a full stacktrace to the log, at error severity (colored red)
Debug.TraceStack(aiSeverity = 2)
Debug.TraceStack(aiSeverity = 2)
</source>
</syntaxhighlight>


== See Also ==
== See Also ==
*[[Debug Script]]
*[[Debug Script]]
*[[Trace - Debug]]
*[[Trace - Debug]]

Navigation menu