V8 Project
v8::Debug::Message Class Referenceabstract

A message object passed to the debug message handler. More...

#include <v8-debug.h>

+ Inheritance diagram for v8::Debug::Message:
+ Collaboration diagram for v8::Debug::Message:

Public Member Functions

virtual bool IsEvent () const =0
 Check type of message. More...
 
virtual bool IsResponse () const =0
 
virtual DebugEvent GetEvent () const =0
 
virtual bool WillStartRunning () const =0
 Indicate whether this is a response to a continue command which will start the VM running after this is processed. More...
 
virtual Handle< ObjectGetExecutionState () const =0
 Access to execution state and event data. More...
 
virtual Handle< ObjectGetEventData () const =0
 
virtual Handle< StringGetJSON () const =0
 Get the debugger protocol JSON. More...
 
virtual Handle< ContextGetEventContext () const =0
 Get the context active when the debug event happened. More...
 
virtual ClientDataGetClientData () const =0
 Client data passed with the corresponding request if any. More...
 
virtual IsolateGetIsolate () const =0
 
virtual ~Message ()
 

Detailed Description

A message object passed to the debug message handler.

Definition at line 44 of file v8-debug.h.

Constructor & Destructor Documentation

◆ ~Message()

virtual v8::Debug::Message::~Message ( )
inlinevirtual

Definition at line 90 of file v8-debug.h.

90 {}

Member Function Documentation

◆ GetClientData()

virtual ClientData* v8::Debug::Message::GetClientData ( ) const
pure virtual

Client data passed with the corresponding request if any.

This is the client_data data value passed into Debug::SendCommand along with the request that led to the message or NULL if the message is an event. The debugger takes ownership of the data and will delete it even if there is no message handler.

Implemented in v8::internal::MessageImpl.

◆ GetEvent()

virtual DebugEvent v8::Debug::Message::GetEvent ( ) const
pure virtual

Implemented in v8::internal::MessageImpl.

◆ GetEventContext()

virtual Handle<Context> v8::Debug::Message::GetEventContext ( ) const
pure virtual

Get the context active when the debug event happened.

Note this is not the current active context as the JavaScript part of the debugger is running in its own context which is entered at this point.

Implemented in v8::internal::MessageImpl.

◆ GetEventData()

virtual Handle<Object> v8::Debug::Message::GetEventData ( ) const
pure virtual

Implemented in v8::internal::MessageImpl.

◆ GetExecutionState()

virtual Handle<Object> v8::Debug::Message::GetExecutionState ( ) const
pure virtual

Access to execution state and event data.

Don't store these cross callbacks as their content becomes invalid. These objects are from the debugger event that started the debug message loop.

Implemented in v8::internal::MessageImpl.

◆ GetIsolate()

virtual Isolate* v8::Debug::Message::GetIsolate ( ) const
pure virtual

Implemented in v8::internal::MessageImpl.

◆ GetJSON()

virtual Handle<String> v8::Debug::Message::GetJSON ( ) const
pure virtual

Get the debugger protocol JSON.

Implemented in v8::internal::MessageImpl.

◆ IsEvent()

virtual bool v8::Debug::Message::IsEvent ( ) const
pure virtual

Check type of message.

Implemented in v8::internal::MessageImpl.

◆ IsResponse()

virtual bool v8::Debug::Message::IsResponse ( ) const
pure virtual

Implemented in v8::internal::MessageImpl.

◆ WillStartRunning()

virtual bool v8::Debug::Message::WillStartRunning ( ) const
pure virtual

Indicate whether this is a response to a continue command which will start the VM running after this is processed.

Implemented in v8::internal::MessageImpl.


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