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

#include <v8-debugger-agent-impl.h>

Inheritance diagram for v8_inspector::V8DebuggerAgentImpl:
Collaboration diagram for v8_inspector::V8DebuggerAgentImpl:

Classes

struct  CachedScript
 

Public Types

enum  BreakpointSource { UserBreakpointSource , DebugCommandBreakpointSource , MonitorCommandBreakpointSource }
 

Public Member Functions

 V8DebuggerAgentImpl (V8InspectorSessionImpl *, protocol::FrontendChannel *, protocol::DictionaryValue *state)
 
 ~V8DebuggerAgentImpl () override
 
 V8DebuggerAgentImpl (const V8DebuggerAgentImpl &)=delete
 
V8DebuggerAgentImploperator= (const V8DebuggerAgentImpl &)=delete
 
void restore ()
 
void stop ()
 
Response enable (std::optional< double > maxScriptsCacheSize, String16 *outDebuggerId) override
 
Response disable () override
 
Response setBreakpointsActive (bool active) override
 
Response setSkipAllPauses (bool skip) override
 
Response setBreakpointByUrl (int lineNumber, std::optional< String16 > optionalURL, std::optional< String16 > optionalURLRegex, std::optional< String16 > optionalScriptHash, std::optional< int > optionalColumnNumber, std::optional< String16 > optionalCondition, String16 *, std::unique_ptr< protocol::Array< protocol::Debugger::Location > > *locations) override
 
Response setBreakpoint (std::unique_ptr< protocol::Debugger::Location >, std::optional< String16 > optionalCondition, String16 *, std::unique_ptr< protocol::Debugger::Location > *actualLocation) override
 
Response setBreakpointOnFunctionCall (const String16 &functionObjectId, std::optional< String16 > optionalCondition, String16 *outBreakpointId) override
 
Response setInstrumentationBreakpoint (const String16 &instrumentation, String16 *outBreakpointId) override
 
Response removeBreakpoint (const String16 &breakpointId) override
 
Response continueToLocation (std::unique_ptr< protocol::Debugger::Location >, std::optional< String16 > targetCallFrames) override
 
Response getStackTrace (std::unique_ptr< protocol::Runtime::StackTraceId > inStackTraceId, std::unique_ptr< protocol::Runtime::StackTrace > *outStackTrace) override
 
Response searchInContent (const String16 &scriptId, const String16 &query, std::optional< bool > optionalCaseSensitive, std::optional< bool > optionalIsRegex, std::unique_ptr< protocol::Array< protocol::Debugger::SearchMatch > > *) override
 
Response getPossibleBreakpoints (std::unique_ptr< protocol::Debugger::Location > start, std::unique_ptr< protocol::Debugger::Location > end, std::optional< bool > restrictToFunction, std::unique_ptr< protocol::Array< protocol::Debugger::BreakLocation > > *locations) override
 
Response setScriptSource (const String16 &inScriptId, const String16 &inScriptSource, std::optional< bool > dryRun, std::optional< bool > allowTopFrameEditing, std::unique_ptr< protocol::Array< protocol::Debugger::CallFrame > > *optOutCallFrames, std::optional< bool > *optOutStackChanged, std::unique_ptr< protocol::Runtime::StackTrace > *optOutAsyncStackTrace, std::unique_ptr< protocol::Runtime::StackTraceId > *optOutAsyncStackTraceId, String16 *outStatus, std::unique_ptr< protocol::Runtime::ExceptionDetails > *optOutCompileError) override
 
Response restartFrame (const String16 &callFrameId, std::optional< String16 > mode, std::unique_ptr< protocol::Array< protocol::Debugger::CallFrame > > *newCallFrames, std::unique_ptr< protocol::Runtime::StackTrace > *asyncStackTrace, std::unique_ptr< protocol::Runtime::StackTraceId > *asyncStackTraceId) override
 
Response getScriptSource (const String16 &scriptId, String16 *scriptSource, std::optional< protocol::Binary > *bytecode) override
 
Response disassembleWasmModule (const String16 &in_scriptId, std::optional< String16 > *out_streamId, int *out_totalNumberOfLines, std::unique_ptr< protocol::Array< int > > *out_functionBodyOffsets, std::unique_ptr< protocol::Debugger::WasmDisassemblyChunk > *out_chunk) override
 
Response nextWasmDisassemblyChunk (const String16 &in_streamId, std::unique_ptr< protocol::Debugger::WasmDisassemblyChunk > *out_chunk) override
 
Response getWasmBytecode (const String16 &scriptId, protocol::Binary *bytecode) override
 
Response pause () override
 
Response resume (std::optional< bool > terminateOnResume) override
 
Response stepOver (std::unique_ptr< protocol::Array< protocol::Debugger::LocationRange > > inSkipList) override
 
Response stepInto (std::optional< bool > inBreakOnAsyncCall, std::unique_ptr< protocol::Array< protocol::Debugger::LocationRange > > inSkipList) override
 
Response stepOut () override
 
Response pauseOnAsyncCall (std::unique_ptr< protocol::Runtime::StackTraceId > inParentStackTraceId) override
 
Response setPauseOnExceptions (const String16 &pauseState) override
 
Response evaluateOnCallFrame (const String16 &callFrameId, const String16 &expression, std::optional< String16 > objectGroup, std::optional< bool > includeCommandLineAPI, std::optional< bool > silent, std::optional< bool > returnByValue, std::optional< bool > generatePreview, std::optional< bool > throwOnSideEffect, std::optional< double > timeout, std::unique_ptr< protocol::Runtime::RemoteObject > *result, std::unique_ptr< protocol::Runtime::ExceptionDetails > *) override
 
Response setVariableValue (int scopeNumber, const String16 &variableName, std::unique_ptr< protocol::Runtime::CallArgument > newValue, const String16 &callFrame) override
 
Response setReturnValue (std::unique_ptr< protocol::Runtime::CallArgument > newValue) override
 
Response setAsyncCallStackDepth (int depth) override
 
Response setBlackboxPatterns (std::unique_ptr< protocol::Array< String16 > > patterns, std::optional< bool > skipAnonymous) override
 
Response setBlackboxExecutionContexts (std::unique_ptr< protocol::Array< String16 > > uniqueIds) override
 
Response setBlackboxedRanges (const String16 &scriptId, std::unique_ptr< protocol::Array< protocol::Debugger::ScriptPosition > > positions) override
 
bool enabled () const
 
void setBreakpointFor (v8::Local< v8::Function > function, v8::Local< v8::String > condition, BreakpointSource source)
 
void removeBreakpointFor (v8::Local< v8::Function > function, BreakpointSource source)
 
void schedulePauseOnNextStatement (const String16 &breakReason, std::unique_ptr< protocol::DictionaryValue > data)
 
void cancelPauseOnNextStatement ()
 
void breakProgram (const String16 &breakReason, std::unique_ptr< protocol::DictionaryValue > data)
 
void reset ()
 
bool instrumentationFinished ()
 
void didPauseOnInstrumentation (v8::debug::BreakpointId instrumentationId)
 
void didPause (int contextId, v8::Local< v8::Value > exception, const std::vector< v8::debug::BreakpointId > &hitBreakpoints, v8::debug::ExceptionType exceptionType, bool isUncaught, v8::debug::BreakReasons breakReasons)
 
void didContinue ()
 
void didParseSource (std::unique_ptr< V8DebuggerScript >, bool success)
 
bool isFunctionBlackboxed (const String16 &scriptId, const v8::debug::Location &start, const v8::debug::Location &end)
 
bool shouldBeSkipped (const String16 &scriptId, int line, int column)
 
bool acceptsPause (bool isOOMBreak) const
 
void ScriptCollected (const V8DebuggerScript *script)
 
v8::Isolateisolate ()
 
void clearBreakDetails ()
 

Private Types

enum  EnableState { kDisabled , kEnabled , kStopping }
 
using ScriptsMap
 
using BreakpointIdToDebuggerBreakpointIdsMap
 
using DebuggerBreakpointIdToBreakpointIdMap
 
using BreakReason
 

Private Member Functions

void enableImpl ()
 
Response currentCallFrames (std::unique_ptr< protocol::Array< protocol::Debugger::CallFrame > > *)
 
std::unique_ptr< protocol::Runtime::StackTrace > currentAsyncStackTrace ()
 
std::unique_ptr< protocol::Runtime::StackTraceId > currentExternalStackTrace ()
 
void setPauseOnExceptionsImpl (int)
 
std::unique_ptr< protocol::Debugger::Location > setBreakpointImpl (const String16 &breakpointId, const String16 &scriptId, const String16 &condition, int lineNumber, int columnNumber)
 
void setBreakpointImpl (const String16 &breakpointId, v8::Local< v8::Function > function, v8::Local< v8::String > condition)
 
void removeBreakpointImpl (const String16 &breakpointId, const std::vector< V8DebuggerScript * > &scripts)
 
void internalSetAsyncCallStackDepth (int)
 
void increaseCachedSkipStackGeneration ()
 
Response setBlackboxPattern (const String16 &pattern)
 
void resetBlackboxedStateCache ()
 
bool isPaused () const
 
void setScriptInstrumentationBreakpointIfNeeded (V8DebuggerScript *script)
 
Response processSkipList (protocol::Array< protocol::Debugger::LocationRange > &skipList)
 
void pushBreakDetails (const String16 &breakReason, std::unique_ptr< protocol::DictionaryValue > breakAuxData)
 
void popBreakDetails ()
 

Private Attributes

V8InspectorImplm_inspector
 
V8Debuggerm_debugger
 
V8InspectorSessionImplm_session
 
EnableState m_enableState
 
protocol::DictionaryValue * m_state
 
protocol::Debugger::Frontend m_frontend
 
v8::Isolatem_isolate
 
ScriptsMap m_scripts
 
BreakpointIdToDebuggerBreakpointIdsMap m_breakpointIdToDebuggerBreakpointIds
 
DebuggerBreakpointIdToBreakpointIdMap m_debuggerBreakpointIdToBreakpointId
 
std::map< String16, std::unique_ptr< DisassemblyCollectorImpl > > m_wasmDisassemblies
 
size_t m_nextWasmDisassemblyStreamId = 0
 
size_t m_maxScriptCacheSize = 0
 
size_t m_cachedScriptSize = 0
 
std::deque< CachedScriptm_cachedScripts
 
std::vector< BreakReasonm_breakReason
 
bool m_skipAllPauses = false
 
bool m_breakpointsActive = false
 
bool m_instrumentationFinished = true
 
bool m_skipAnonymousScripts = false
 
std::unique_ptr< V8Regexm_blackboxPattern
 
std::unordered_map< String16, std::vector< std::pair< int, int > > > m_blackboxedPositions
 
std::unordered_map< String16, std::vector< std::pair< int, int > > > m_skipList
 
std::unordered_set< String16m_blackboxedExecutionContexts
 

Detailed Description

Definition at line 31 of file v8-debugger-agent-impl.h.

Member Typedef Documentation

◆ BreakpointIdToDebuggerBreakpointIdsMap

Initial value:
std::unordered_map<String16, std::vector<v8::debug::BreakpointId>>

Definition at line 234 of file v8-debugger-agent-impl.h.

◆ BreakReason

Initial value:
std::pair<String16, std::unique_ptr<protocol::DictionaryValue>>

Definition at line 273 of file v8-debugger-agent-impl.h.

◆ DebuggerBreakpointIdToBreakpointIdMap

Initial value:
std::unordered_map<v8::debug::BreakpointId, String16>

Definition at line 236 of file v8-debugger-agent-impl.h.

◆ ScriptsMap

Initial value:
std::unordered_map<String16, std::unique_ptr<V8DebuggerScript>>

Definition at line 232 of file v8-debugger-agent-impl.h.

Member Enumeration Documentation

◆ BreakpointSource

Enumerator
UserBreakpointSource 
DebugCommandBreakpointSource 
MonitorCommandBreakpointSource 

Definition at line 33 of file v8-debugger-agent-impl.h.

◆ EnableState

Enumerator
kDisabled 
kEnabled 
kStopping 

Definition at line 239 of file v8-debugger-agent-impl.h.

Constructor & Destructor Documentation

◆ V8DebuggerAgentImpl() [1/2]

v8_inspector::V8DebuggerAgentImpl::V8DebuggerAgentImpl ( V8InspectorSessionImpl * session,
protocol::FrontendChannel * frontendChannel,
protocol::DictionaryValue * state )

Definition at line 427 of file v8-debugger-agent-impl.cc.

◆ ~V8DebuggerAgentImpl()

v8_inspector::V8DebuggerAgentImpl::~V8DebuggerAgentImpl ( )
overridedefault

◆ V8DebuggerAgentImpl() [2/2]

v8_inspector::V8DebuggerAgentImpl::V8DebuggerAgentImpl ( const V8DebuggerAgentImpl & )
delete

Member Function Documentation

◆ acceptsPause()

bool v8_inspector::V8DebuggerAgentImpl::acceptsPause ( bool isOOMBreak) const

Definition at line 1057 of file v8-debugger-agent-impl.cc.

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

◆ breakProgram()

void v8_inspector::V8DebuggerAgentImpl::breakProgram ( const String16 & breakReason,
std::unique_ptr< protocol::DictionaryValue > data )

Definition at line 2293 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ cancelPauseOnNextStatement()

void v8_inspector::V8DebuggerAgentImpl::cancelPauseOnNextStatement ( )

Definition at line 1458 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ clearBreakDetails()

void v8_inspector::V8DebuggerAgentImpl::clearBreakDetails ( )

Definition at line 1443 of file v8-debugger-agent-impl.cc.

Here is the caller graph for this function:

◆ continueToLocation()

Response v8_inspector::V8DebuggerAgentImpl::continueToLocation ( std::unique_ptr< protocol::Debugger::Location > location,
std::optional< String16 > targetCallFrames )
override

Definition at line 934 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ currentAsyncStackTrace()

std::unique_ptr< protocol::Runtime::StackTrace > v8_inspector::V8DebuggerAgentImpl::currentAsyncStackTrace ( )
private

Definition at line 1860 of file v8-debugger-agent-impl.cc.

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

◆ currentCallFrames()

Response v8_inspector::V8DebuggerAgentImpl::currentCallFrames ( std::unique_ptr< protocol::Array< protocol::Debugger::CallFrame > > * )
private

Definition at line 1774 of file v8-debugger-agent-impl.cc.

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

◆ currentExternalStackTrace()

std::unique_ptr< protocol::Runtime::StackTraceId > v8_inspector::V8DebuggerAgentImpl::currentExternalStackTrace ( )
private

Definition at line 1869 of file v8-debugger-agent-impl.cc.

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

◆ didContinue()

void v8_inspector::V8DebuggerAgentImpl::didContinue ( )

Definition at line 2288 of file v8-debugger-agent-impl.cc.

Here is the caller graph for this function:

◆ didParseSource()

void v8_inspector::V8DebuggerAgentImpl::didParseSource ( std::unique_ptr< V8DebuggerScript > script,
bool success )

Definition at line 1944 of file v8-debugger-agent-impl.cc.

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

◆ didPause()

void v8_inspector::V8DebuggerAgentImpl::didPause ( int contextId,
v8::Local< v8::Value > exception,
const std::vector< v8::debug::BreakpointId > & hitBreakpoints,
v8::debug::ExceptionType exceptionType,
bool isUncaught,
v8::debug::BreakReasons breakReasons )

Definition at line 2171 of file v8-debugger-agent-impl.cc.

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

◆ didPauseOnInstrumentation()

void v8_inspector::V8DebuggerAgentImpl::didPauseOnInstrumentation ( v8::debug::BreakpointId instrumentationId)

Definition at line 2135 of file v8-debugger-agent-impl.cc.

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

◆ disable()

Response v8_inspector::V8DebuggerAgentImpl::disable ( )
override

Definition at line 482 of file v8-debugger-agent-impl.cc.

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

◆ disassembleWasmModule()

Response v8_inspector::V8DebuggerAgentImpl::disassembleWasmModule ( const String16 & in_scriptId,
std::optional< String16 > * out_streamId,
int * out_totalNumberOfLines,
std::unique_ptr< protocol::Array< int > > * out_functionBodyOffsets,
std::unique_ptr< protocol::Debugger::WasmDisassemblyChunk > * out_chunk )
override

Definition at line 1325 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ enable()

Response v8_inspector::V8DebuggerAgentImpl::enable ( std::optional< double > maxScriptsCacheSize,
String16 * outDebuggerId )
override

Definition at line 463 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ enabled()

bool v8_inspector::V8DebuggerAgentImpl::enabled ( ) const
inline

Definition at line 160 of file v8-debugger-agent-impl.h.

Here is the caller graph for this function:

◆ enableImpl()

void v8_inspector::V8DebuggerAgentImpl::enableImpl ( )
private

Definition at line 440 of file v8-debugger-agent-impl.cc.

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

◆ evaluateOnCallFrame()

Response v8_inspector::V8DebuggerAgentImpl::evaluateOnCallFrame ( const String16 & callFrameId,
const String16 & expression,
std::optional< String16 > objectGroup,
std::optional< bool > includeCommandLineAPI,
std::optional< bool > silent,
std::optional< bool > returnByValue,
std::optional< bool > generatePreview,
std::optional< bool > throwOnSideEffect,
std::optional< double > timeout,
std::unique_ptr< protocol::Runtime::RemoteObject > * result,
std::unique_ptr< protocol::Runtime::ExceptionDetails > *  )
override

Definition at line 1574 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ getPossibleBreakpoints()

Response v8_inspector::V8DebuggerAgentImpl::getPossibleBreakpoints ( std::unique_ptr< protocol::Debugger::Location > start,
std::unique_ptr< protocol::Debugger::Location > end,
std::optional< bool > restrictToFunction,
std::unique_ptr< protocol::Array< protocol::Debugger::BreakLocation > > * locations )
override

Definition at line 868 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ getScriptSource()

Response v8_inspector::V8DebuggerAgentImpl::getScriptSource ( const String16 & scriptId,
String16 * scriptSource,
std::optional< protocol::Binary > * bytecode )
override

Definition at line 1230 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ getStackTrace()

Response v8_inspector::V8DebuggerAgentImpl::getStackTrace ( std::unique_ptr< protocol::Runtime::StackTraceId > inStackTraceId,
std::unique_ptr< protocol::Runtime::StackTrace > * outStackTrace )
override

Definition at line 956 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ getWasmBytecode()

Response v8_inspector::V8DebuggerAgentImpl::getWasmBytecode ( const String16 & scriptId,
protocol::Binary * bytecode )
override

Definition at line 1411 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ increaseCachedSkipStackGeneration()

void v8_inspector::V8DebuggerAgentImpl::increaseCachedSkipStackGeneration ( )
private

◆ instrumentationFinished()

bool v8_inspector::V8DebuggerAgentImpl::instrumentationFinished ( )
inline

Definition at line 176 of file v8-debugger-agent-impl.h.

Here is the caller graph for this function:

◆ internalSetAsyncCallStackDepth()

void v8_inspector::V8DebuggerAgentImpl::internalSetAsyncCallStackDepth ( int )
private

◆ isFunctionBlackboxed()

bool v8_inspector::V8DebuggerAgentImpl::isFunctionBlackboxed ( const String16 & scriptId,
const v8::debug::Location & start,
const v8::debug::Location & end )

Definition at line 986 of file v8-debugger-agent-impl.cc.

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

◆ isolate()

v8::Isolate * v8_inspector::V8DebuggerAgentImpl::isolate ( )
inline

Definition at line 196 of file v8-debugger-agent-impl.h.

◆ isPaused()

bool v8_inspector::V8DebuggerAgentImpl::isPaused ( ) const
private

Definition at line 1879 of file v8-debugger-agent-impl.cc.

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

◆ nextWasmDisassemblyChunk()

Response v8_inspector::V8DebuggerAgentImpl::nextWasmDisassemblyChunk ( const String16 & in_streamId,
std::unique_ptr< protocol::Debugger::WasmDisassemblyChunk > * out_chunk )
override

Definition at line 1379 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ operator=()

V8DebuggerAgentImpl & v8_inspector::V8DebuggerAgentImpl::operator= ( const V8DebuggerAgentImpl & )
delete

◆ pause()

Response v8_inspector::V8DebuggerAgentImpl::pause ( )
override

Definition at line 1466 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ pauseOnAsyncCall()

Response v8_inspector::V8DebuggerAgentImpl::pauseOnAsyncCall ( std::unique_ptr< protocol::Runtime::StackTraceId > inParentStackTraceId)
override

Definition at line 1540 of file v8-debugger-agent-impl.cc.

◆ popBreakDetails()

void v8_inspector::V8DebuggerAgentImpl::popBreakDetails ( )
private

Definition at line 1438 of file v8-debugger-agent-impl.cc.

Here is the caller graph for this function:

◆ processSkipList()

Response v8_inspector::V8DebuggerAgentImpl::processSkipList ( protocol::Array< protocol::Debugger::LocationRange > & skipList)
private

Definition at line 2378 of file v8-debugger-agent-impl.cc.

Here is the caller graph for this function:

◆ pushBreakDetails()

void v8_inspector::V8DebuggerAgentImpl::pushBreakDetails ( const String16 & breakReason,
std::unique_ptr< protocol::DictionaryValue > breakAuxData )
private

Definition at line 1432 of file v8-debugger-agent-impl.cc.

Here is the caller graph for this function:

◆ removeBreakpoint()

Response v8_inspector::V8DebuggerAgentImpl::removeBreakpoint ( const String16 & breakpointId)
override

Definition at line 784 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ removeBreakpointFor()

void v8_inspector::V8DebuggerAgentImpl::removeBreakpointFor ( v8::Local< v8::Function > function,
BreakpointSource source )

Definition at line 2330 of file v8-debugger-agent-impl.cc.

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

◆ removeBreakpointImpl()

void v8_inspector::V8DebuggerAgentImpl::removeBreakpointImpl ( const String16 & breakpointId,
const std::vector< V8DebuggerScript * > & scripts )
private

Definition at line 845 of file v8-debugger-agent-impl.cc.

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

◆ reset()

void v8_inspector::V8DebuggerAgentImpl::reset ( )

Definition at line 2340 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ resetBlackboxedStateCache()

void v8_inspector::V8DebuggerAgentImpl::resetBlackboxedStateCache ( )
private

Definition at line 1736 of file v8-debugger-agent-impl.cc.

Here is the caller graph for this function:

◆ restartFrame()

Response v8_inspector::V8DebuggerAgentImpl::restartFrame ( const String16 & callFrameId,
std::optional< String16 > mode,
std::unique_ptr< protocol::Array< protocol::Debugger::CallFrame > > * newCallFrames,
std::unique_ptr< protocol::Runtime::StackTrace > * asyncStackTrace,
std::unique_ptr< protocol::Runtime::StackTraceId > * asyncStackTraceId )
override

Definition at line 1202 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ restore()

void v8_inspector::V8DebuggerAgentImpl::restore ( )

Definition at line 526 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ resume()

Response v8_inspector::V8DebuggerAgentImpl::resume ( std::optional< bool > terminateOnResume)
override

Definition at line 1487 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ schedulePauseOnNextStatement()

void v8_inspector::V8DebuggerAgentImpl::schedulePauseOnNextStatement ( const String16 & breakReason,
std::unique_ptr< protocol::DictionaryValue > data )

Definition at line 1448 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ ScriptCollected()

void v8_inspector::V8DebuggerAgentImpl::ScriptCollected ( const V8DebuggerScript * script)

Definition at line 2352 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ searchInContent()

Response v8_inspector::V8DebuggerAgentImpl::searchInContent ( const String16 & scriptId,
const String16 & query,
std::optional< bool > optionalCaseSensitive,
std::optional< bool > optionalIsRegex,
std::unique_ptr< protocol::Array< protocol::Debugger::SearchMatch > > *  )
override

Definition at line 1110 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ setAsyncCallStackDepth()

Response v8_inspector::V8DebuggerAgentImpl::setAsyncCallStackDepth ( int depth)
override

Definition at line 1679 of file v8-debugger-agent-impl.cc.

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

◆ setBlackboxedRanges()

Response v8_inspector::V8DebuggerAgentImpl::setBlackboxedRanges ( const String16 & scriptId,
std::unique_ptr< protocol::Array< protocol::Debugger::ScriptPosition > > positions )
override

Definition at line 1742 of file v8-debugger-agent-impl.cc.

◆ setBlackboxExecutionContexts()

Response v8_inspector::V8DebuggerAgentImpl::setBlackboxExecutionContexts ( std::unique_ptr< protocol::Array< String16 > > uniqueIds)
override

Definition at line 1717 of file v8-debugger-agent-impl.cc.

◆ setBlackboxPattern()

Response v8_inspector::V8DebuggerAgentImpl::setBlackboxPattern ( const String16 & pattern)
private

caseSensitive

multiline

Definition at line 1726 of file v8-debugger-agent-impl.cc.

Here is the caller graph for this function:

◆ setBlackboxPatterns()

Response v8_inspector::V8DebuggerAgentImpl::setBlackboxPatterns ( std::unique_ptr< protocol::Array< String16 > > patterns,
std::optional< bool > skipAnonymous )
override

Definition at line 1688 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ setBreakpoint()

Response v8_inspector::V8DebuggerAgentImpl::setBreakpoint ( std::unique_ptr< protocol::Debugger::Location > location,
std::optional< String16 > optionalCondition,
String16 * outBreakpointId,
std::unique_ptr< protocol::Debugger::Location > * actualLocation )
override

Definition at line 718 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ setBreakpointByUrl()

Response v8_inspector::V8DebuggerAgentImpl::setBreakpointByUrl ( int lineNumber,
std::optional< String16 > optionalURL,
std::optional< String16 > optionalURLRegex,
std::optional< String16 > optionalScriptHash,
std::optional< int > optionalColumnNumber,
std::optional< String16 > optionalCondition,
String16 * outBreakpointId,
std::unique_ptr< protocol::Array< protocol::Debugger::Location > > * locations )
override

Definition at line 617 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ setBreakpointFor()

void v8_inspector::V8DebuggerAgentImpl::setBreakpointFor ( v8::Local< v8::Function > function,
v8::Local< v8::String > condition,
BreakpointSource source )

Definition at line 2316 of file v8-debugger-agent-impl.cc.

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

◆ setBreakpointImpl() [1/2]

std::unique_ptr< protocol::Debugger::Location > v8_inspector::V8DebuggerAgentImpl::setBreakpointImpl ( const String16 & breakpointId,
const String16 & scriptId,
const String16 & condition,
int lineNumber,
int columnNumber )
private

Definition at line 1062 of file v8-debugger-agent-impl.cc.

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

◆ setBreakpointImpl() [2/2]

void v8_inspector::V8DebuggerAgentImpl::setBreakpointImpl ( const String16 & breakpointId,
v8::Local< v8::Function > function,
v8::Local< v8::String > condition )
private

Definition at line 1097 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ setBreakpointOnFunctionCall()

Response v8_inspector::V8DebuggerAgentImpl::setBreakpointOnFunctionCall ( const String16 & functionObjectId,
std::optional< String16 > optionalCondition,
String16 * outBreakpointId )
override

Definition at line 742 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ setBreakpointsActive()

Response v8_inspector::V8DebuggerAgentImpl::setBreakpointsActive ( bool active)
override

Definition at line 561 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ setInstrumentationBreakpoint()

Response v8_inspector::V8DebuggerAgentImpl::setInstrumentationBreakpoint ( const String16 & instrumentation,
String16 * outBreakpointId )
override

Definition at line 769 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ setPauseOnExceptions()

Response v8_inspector::V8DebuggerAgentImpl::setPauseOnExceptions ( const String16 & pauseState)
override

Definition at line 1546 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ setPauseOnExceptionsImpl()

void v8_inspector::V8DebuggerAgentImpl::setPauseOnExceptionsImpl ( int pauseState)
private

Definition at line 1566 of file v8-debugger-agent-impl.cc.

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

◆ setReturnValue()

Response v8_inspector::V8DebuggerAgentImpl::setReturnValue ( std::unique_ptr< protocol::Runtime::CallArgument > newValue)
override

Definition at line 1655 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ setScriptInstrumentationBreakpointIfNeeded()

void v8_inspector::V8DebuggerAgentImpl::setScriptInstrumentationBreakpointIfNeeded ( V8DebuggerScript * script)
private

Definition at line 2108 of file v8-debugger-agent-impl.cc.

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

◆ setScriptSource()

Response v8_inspector::V8DebuggerAgentImpl::setScriptSource ( const String16 & inScriptId,
const String16 & inScriptSource,
std::optional< bool > dryRun,
std::optional< bool > allowTopFrameEditing,
std::unique_ptr< protocol::Array< protocol::Debugger::CallFrame > > * optOutCallFrames,
std::optional< bool > * optOutStackChanged,
std::unique_ptr< protocol::Runtime::StackTrace > * optOutAsyncStackTrace,
std::unique_ptr< protocol::Runtime::StackTraceId > * optOutAsyncStackTraceId,
String16 * outStatus,
std::unique_ptr< protocol::Runtime::ExceptionDetails > * optOutCompileError )
override

Definition at line 1147 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ setSkipAllPauses()

Response v8_inspector::V8DebuggerAgentImpl::setSkipAllPauses ( bool skip)
override

Definition at line 574 of file v8-debugger-agent-impl.cc.

◆ setVariableValue()

Response v8_inspector::V8DebuggerAgentImpl::setVariableValue ( int scopeNumber,
const String16 & variableName,
std::unique_ptr< protocol::Runtime::CallArgument > newValue,
const String16 & callFrame )
override

Definition at line 1619 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ shouldBeSkipped()

bool v8_inspector::V8DebuggerAgentImpl::shouldBeSkipped ( const String16 & scriptId,
int line,
int column )

Definition at line 1030 of file v8-debugger-agent-impl.cc.

◆ stepInto()

Response v8_inspector::V8DebuggerAgentImpl::stepInto ( std::optional< bool > inBreakOnAsyncCall,
std::unique_ptr< protocol::Array< protocol::Debugger::LocationRange > > inSkipList )
override

Definition at line 1514 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ stepOut()

Response v8_inspector::V8DebuggerAgentImpl::stepOut ( )
override

Definition at line 1533 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ stepOver()

Response v8_inspector::V8DebuggerAgentImpl::stepOver ( std::unique_ptr< protocol::Array< protocol::Debugger::LocationRange > > inSkipList)
override

Definition at line 1497 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

◆ stop()

void v8_inspector::V8DebuggerAgentImpl::stop ( )

Definition at line 2413 of file v8-debugger-agent-impl.cc.

Here is the call graph for this function:

Member Data Documentation

◆ m_blackboxedExecutionContexts

std::unordered_set<String16> v8_inspector::V8DebuggerAgentImpl::m_blackboxedExecutionContexts
private

Definition at line 291 of file v8-debugger-agent-impl.h.

◆ m_blackboxedPositions

std::unordered_map<String16, std::vector<std::pair<int, int> > > v8_inspector::V8DebuggerAgentImpl::m_blackboxedPositions
private

Definition at line 289 of file v8-debugger-agent-impl.h.

◆ m_blackboxPattern

std::unique_ptr<V8Regex> v8_inspector::V8DebuggerAgentImpl::m_blackboxPattern
private

Definition at line 287 of file v8-debugger-agent-impl.h.

◆ m_breakpointIdToDebuggerBreakpointIds

BreakpointIdToDebuggerBreakpointIdsMap v8_inspector::V8DebuggerAgentImpl::m_breakpointIdToDebuggerBreakpointIds
private

Definition at line 254 of file v8-debugger-agent-impl.h.

◆ m_breakpointsActive

bool v8_inspector::V8DebuggerAgentImpl::m_breakpointsActive = false
private

Definition at line 283 of file v8-debugger-agent-impl.h.

◆ m_breakReason

std::vector<BreakReason> v8_inspector::V8DebuggerAgentImpl::m_breakReason
private

Definition at line 275 of file v8-debugger-agent-impl.h.

◆ m_cachedScripts

std::deque<CachedScript> v8_inspector::V8DebuggerAgentImpl::m_cachedScripts
private

Definition at line 271 of file v8-debugger-agent-impl.h.

◆ m_cachedScriptSize

size_t v8_inspector::V8DebuggerAgentImpl::m_cachedScriptSize = 0
private

Definition at line 261 of file v8-debugger-agent-impl.h.

◆ m_debugger

V8Debugger* v8_inspector::V8DebuggerAgentImpl::m_debugger
private

Definition at line 247 of file v8-debugger-agent-impl.h.

◆ m_debuggerBreakpointIdToBreakpointId

DebuggerBreakpointIdToBreakpointIdMap v8_inspector::V8DebuggerAgentImpl::m_debuggerBreakpointIdToBreakpointId
private

Definition at line 255 of file v8-debugger-agent-impl.h.

◆ m_enableState

EnableState v8_inspector::V8DebuggerAgentImpl::m_enableState
private

Definition at line 249 of file v8-debugger-agent-impl.h.

◆ m_frontend

protocol::Debugger::Frontend v8_inspector::V8DebuggerAgentImpl::m_frontend
private

Definition at line 251 of file v8-debugger-agent-impl.h.

◆ m_inspector

V8InspectorImpl* v8_inspector::V8DebuggerAgentImpl::m_inspector
private

Definition at line 246 of file v8-debugger-agent-impl.h.

◆ m_instrumentationFinished

bool v8_inspector::V8DebuggerAgentImpl::m_instrumentationFinished = true
private

Definition at line 284 of file v8-debugger-agent-impl.h.

◆ m_isolate

v8::Isolate* v8_inspector::V8DebuggerAgentImpl::m_isolate
private

Definition at line 252 of file v8-debugger-agent-impl.h.

◆ m_maxScriptCacheSize

size_t v8_inspector::V8DebuggerAgentImpl::m_maxScriptCacheSize = 0
private

Definition at line 260 of file v8-debugger-agent-impl.h.

◆ m_nextWasmDisassemblyStreamId

size_t v8_inspector::V8DebuggerAgentImpl::m_nextWasmDisassemblyStreamId = 0
private

Definition at line 258 of file v8-debugger-agent-impl.h.

◆ m_scripts

ScriptsMap v8_inspector::V8DebuggerAgentImpl::m_scripts
private

Definition at line 253 of file v8-debugger-agent-impl.h.

◆ m_session

V8InspectorSessionImpl* v8_inspector::V8DebuggerAgentImpl::m_session
private

Definition at line 248 of file v8-debugger-agent-impl.h.

◆ m_skipAllPauses

bool v8_inspector::V8DebuggerAgentImpl::m_skipAllPauses = false
private

Definition at line 282 of file v8-debugger-agent-impl.h.

◆ m_skipAnonymousScripts

bool v8_inspector::V8DebuggerAgentImpl::m_skipAnonymousScripts = false
private

Definition at line 285 of file v8-debugger-agent-impl.h.

◆ m_skipList

std::unordered_map<String16, std::vector<std::pair<int, int> > > v8_inspector::V8DebuggerAgentImpl::m_skipList
private

Definition at line 290 of file v8-debugger-agent-impl.h.

◆ m_state

protocol::DictionaryValue* v8_inspector::V8DebuggerAgentImpl::m_state
private

Definition at line 250 of file v8-debugger-agent-impl.h.

◆ m_wasmDisassemblies

std::map<String16, std::unique_ptr<DisassemblyCollectorImpl> > v8_inspector::V8DebuggerAgentImpl::m_wasmDisassemblies
private

Definition at line 257 of file v8-debugger-agent-impl.h.


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