![]() |
My Project
V8 API Reference Guide generated from the header files
|
#include <v8.h>
Public Types | |
| enum | StackTraceOptions { kLineNumber = 1, kColumnOffset = 1 << 1 | kLineNumber, kScriptName = 1 << 2, kFunctionName = 1 << 3, kIsEval = 1 << 4, kIsConstructor = 1 << 5, kScriptNameOrSourceURL = 1 << 6, kScriptId = 1 << 7, kExposeFramesAcrossSecurityOrigins = 1 << 8, kOverview = kLineNumber | kColumnOffset | kScriptName | kFunctionName, kDetailed = kOverview | kIsEval | kIsConstructor | kScriptNameOrSourceURL } |
Public Member Functions | |
| V8_DEPRECATED ("Use Isolate version", Local< StackFrame > GetFrame(uint32_t index) const) | |
| Local< StackFrame > | GetFrame (Isolate *isolate, uint32_t index) const |
| int | GetFrameCount () const |
Static Public Member Functions | |
| static Local< StackTrace > | CurrentStackTrace (Isolate *isolate, int frame_limit, StackTraceOptions options=kDetailed) |
Representation of a JavaScript stack trace. The information collected is a snapshot of the execution stack and the information remains valid after execution continues.
Flags that determine what information is placed captured for each StackFrame when grabbing the current stack trace. Note: these options are deprecated and we always collect all available information (kDetailed).
|
static |
Grab a snapshot of the current JavaScript execution stack.
| frame_limit | The maximum number of stack frames we want to capture. |
| options | Enumerates the set of things we will capture for each StackFrame. |
| int v8::StackTrace::GetFrameCount | ( | ) | const |
Returns the number of StackFrames.
| v8::StackTrace::V8_DEPRECATED | ( | "Use Isolate version" | , |
| Local< StackFrame > GetFrame(uint32_t index) const | |||
| ) |
Returns a StackFrame at a particular index.
1.8.15