v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::debug::Script Class Reference

#include <debug-interface.h>

Collaboration diagram for v8::debug::Script:

Public Types

enum class  GetSourceOffsetMode { kStrict , kClamp }
 

Public Member Functions

v8::IsolateGetIsolate () const
 
ScriptOriginOptions OriginOptions () const
 
bool WasCompiled () const
 
bool IsEmbedded () const
 
int Id () const
 
int StartLine () const
 
int StartColumn () const
 
int EndLine () const
 
int EndColumn () const
 
MaybeLocal< StringName () const
 
MaybeLocal< StringSourceURL () const
 
MaybeLocal< StringSourceMappingURL () const
 
MaybeLocal< StringGetSha256Hash () const
 
Maybe< int > ContextId () const
 
Local< ScriptSourceSource () const
 
bool IsModule () const
 
bool GetPossibleBreakpoints (const debug::Location &start, const debug::Location &end, bool restrict_to_function, std::vector< debug::BreakLocation > *locations) const
 
Maybe< int > GetSourceOffset (const debug::Location &location, GetSourceOffsetMode mode=GetSourceOffsetMode::kStrict) const
 
v8::debug::Location GetSourceLocation (int offset) const
 
bool SetScriptSource (v8::Local< v8::String > newSource, bool preview, bool allow_top_frame_live_editing, LiveEditResult *result) const
 
bool SetBreakpoint (v8::Local< v8::String > condition, debug::Location *location, BreakpointId *id) const
 
bool SetInstrumentationBreakpoint (BreakpointId *id) const
 

Detailed Description

Native wrapper around v8::internal::Script object.

Definition at line 206 of file debug-interface.h.

Member Enumeration Documentation

◆ GetSourceOffsetMode

Enumerator
kStrict 
kClamp 

Definition at line 229 of file debug-interface.h.

Member Function Documentation

◆ ContextId()

Maybe< int > v8::debug::Script::ContextId ( ) const

Definition at line 566 of file debug-interface.cc.

Here is the call graph for this function:

◆ EndColumn()

int v8::debug::Script::EndColumn ( ) const

Definition at line 516 of file debug-interface.cc.

Here is the call graph for this function:

◆ EndLine()

int v8::debug::Script::EndLine ( ) const

Definition at line 500 of file debug-interface.cc.

Here is the call graph for this function:

◆ GetIsolate()

Isolate * v8::debug::Script::GetIsolate ( ) const

Definition at line 471 of file debug-interface.cc.

Here is the call graph for this function:

◆ GetPossibleBreakpoints()

bool v8::debug::Script::GetPossibleBreakpoints ( const debug::Location & start,
const debug::Location & end,
bool restrict_to_function,
std::vector< debug::BreakLocation > * locations ) const

Definition at line 610 of file debug-interface.cc.

Here is the call graph for this function:

◆ GetSha256Hash()

MaybeLocal< String > v8::debug::Script::GetSha256Hash ( ) const

Definition at line 558 of file debug-interface.cc.

Here is the call graph for this function:

◆ GetSourceLocation()

Location v8::debug::Script::GetSourceLocation ( int offset) const

Definition at line 713 of file debug-interface.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetSourceOffset()

Maybe< int > v8::debug::Script::GetSourceOffset ( const debug::Location & location,
GetSourceOffsetMode mode = GetSourceOffsetMode::kStrict ) const

Definition at line 653 of file debug-interface.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Id()

int v8::debug::Script::Id ( ) const

Definition at line 490 of file debug-interface.cc.

Here is the call graph for this function:

◆ IsEmbedded()

bool v8::debug::Script::IsEmbedded ( ) const

Definition at line 485 of file debug-interface.cc.

Here is the call graph for this function:

◆ IsModule()

bool v8::debug::Script::IsModule ( ) const

Definition at line 593 of file debug-interface.cc.

Here is the call graph for this function:

◆ Name()

MaybeLocal< String > v8::debug::Script::Name ( ) const

Definition at line 534 of file debug-interface.cc.

Here is the call graph for this function:

◆ OriginOptions()

ScriptOriginOptions v8::debug::Script::OriginOptions ( ) const

Definition at line 476 of file debug-interface.cc.

Here is the call graph for this function:

◆ SetBreakpoint()

bool v8::debug::Script::SetBreakpoint ( v8::Local< v8::String > condition,
debug::Location * location,
BreakpointId * id ) const

Definition at line 738 of file debug-interface.cc.

Here is the call graph for this function:

◆ SetInstrumentationBreakpoint()

bool v8::debug::Script::SetInstrumentationBreakpoint ( BreakpointId * id) const

Definition at line 754 of file debug-interface.cc.

Here is the call graph for this function:

◆ SetScriptSource()

bool v8::debug::Script::SetScriptSource ( v8::Local< v8::String > newSource,
bool preview,
bool allow_top_frame_live_editing,
LiveEditResult * result ) const

Definition at line 728 of file debug-interface.cc.

Here is the call graph for this function:

◆ Source()

Local< ScriptSource > v8::debug::Script::Source ( ) const

Definition at line 573 of file debug-interface.cc.

Here is the call graph for this function:

◆ SourceMappingURL()

MaybeLocal< String > v8::debug::Script::SourceMappingURL ( ) const

Definition at line 550 of file debug-interface.cc.

Here is the call graph for this function:

◆ SourceURL()

MaybeLocal< String > v8::debug::Script::SourceURL ( ) const

Definition at line 542 of file debug-interface.cc.

Here is the call graph for this function:

◆ StartColumn()

int v8::debug::Script::StartColumn ( ) const

Definition at line 496 of file debug-interface.cc.

Here is the call graph for this function:

◆ StartLine()

int v8::debug::Script::StartLine ( ) const

Definition at line 492 of file debug-interface.cc.

Here is the call graph for this function:

◆ WasCompiled()

bool v8::debug::Script::WasCompiled ( ) const

Definition at line 480 of file debug-interface.cc.

Here is the call graph for this function:

The documentation for this class was generated from the following files: