v8 13.6.233 (node 24.1.0)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
v8-debug.h
Go to the documentation of this file.
1// Copyright 2021 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef INCLUDE_V8_DEBUG_H_
6#define INCLUDE_V8_DEBUG_H_
7
8#include <stdint.h>
9
10#include "v8-script.h" // NOLINT(build/include_directory)
11#include "v8config.h" // NOLINT(build/include_directory)
12
13namespace v8 {
14
15class Isolate;
16class String;
17
22 public:
27
34 int GetLineNumber() const { return GetLocation().GetLineNumber() + 1; }
35
43 int GetColumn() const { return GetLocation().GetColumnNumber() + 1; }
44
49 int GetSourcePosition() const;
50
57 int GetScriptId() const;
58
64
72
77
83
88
93 bool IsEval() const;
94
99 bool IsConstructor() const;
100
104 bool IsWasm() const;
105
109 bool IsUserJavaScript() const;
110};
111
176
177} // namespace v8
178
179#endif // INCLUDE_V8_DEBUG_H_
Location GetLocation() const
bool IsWasm() const
Local< String > GetFunctionName() const
int GetColumn() const
Definition v8-debug.h:43
bool IsUserJavaScript() const
int GetSourcePosition() const
Local< String > GetScriptName() const
int GetLineNumber() const
Definition v8-debug.h:34
bool IsConstructor() const
Local< String > GetScriptSource() const
int GetScriptId() const
bool IsEval() const
Local< String > GetScriptNameOrSourceURL() const
Local< String > GetScriptSourceMappingURL() const
static Local< String > CurrentScriptNameOrSourceURL(Isolate *isolate)
int GetFrameCount() const
@ kExposeFramesAcrossSecurityOrigins
Definition v8-debug.h:134
@ kScriptNameOrSourceURL
Definition v8-debug.h:132
static Local< StackTrace > CurrentStackTrace(Isolate *isolate, int frame_limit, StackTraceOptions options=kDetailed)
int GetID() const
Local< StackFrame > GetFrame(Isolate *isolate, uint32_t index) const
#define V8_EXPORT
Definition v8config.h:800