ClearScript Library
ClearScript Library
ClearScript Library Reference
Microsoft.ClearScript.Windows.Core
WindowsScriptEngine Class
WindowsScriptEngine Methods
CheckAccess Method
CollectGarbage Method
Dispose Method
GetStackTrace Method
Interrupt Method
VerifyAccess Method

# WindowsScriptEngineGetStackTrace Method

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

    public override string GetStackTrace()

    Public Overrides Function GetStackTrace As String

    public:
    virtual String^ GetStackTrace() override

    abstract GetStackTrace : unit -> string
    override 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.

The WindowsScriptEngine version of this method returns the empty string if script debugging features have not been enabled for the instance.

See Also

#### Reference

WindowsScriptEngine Class
Microsoft.ClearScript.Windows.Core Namespace

Copyright © Microsoft Corporation. All rights reserved.

Send comments on this topic to Microsoft