ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript
ScriptEngine Class
ScriptEngine Methods
AddCOMObject Method
AddCOMType Method
AddHostObject Method
AddHostType Method
AddHostTypes Method
AddRestrictedHostObject Method
CollectGarbage Method
Dispose Method
Evaluate Method
EvaluateDocument Method
Execute Method
ExecuteCommand Method
ExecuteDocument Method
Finalize Method
GetStackTrace Method
Interrupt Method
Invoke Method

# ScriptEngineGetStackTrace Method

Gets a string representation of the script call stack.
Namespace: Microsoft.ClearScript
Assembly: ClearScript.Core (in ClearScript.Core.dll) Version: 7.5.0
Syntax
C#
VB
C++
F#
Copy

    public abstract string GetStackTrace()

    Public MustOverride Function GetStackTrace As String

    public:
    virtual String^ GetStackTrace() abstract

    abstract GetStackTrace : unit -> string

#### Return Value

String
The script call stack formatted as a string.

#### Implements

IScriptEngineGetStackTrace
Remarks
This method returns an empty string if the script engine is not executing script code. The stack trace text format is defined by the script engine.
See Also

#### Reference

ScriptEngine Class
Microsoft.ClearScript Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft