v8  6.2.414 (node 8.16.2)
V8 is Google's open source JavaScript engine
Debug Class Reference

#include <v8-debug.h>

Data Structures

class  ClientData
 
class  EventDetails
 
class  Message
 

Public Types

typedef void(* EventCallback) (const EventDetails &event_details)
 
typedef void(* MessageHandler) (const Message &message)
 

Public Member Functions

 V8_DEPRECATED ("No longer supported", static bool SetDebugEventListener(Isolate *isolate, EventCallback that, Local< Value > data=Local< Value >()))
 
 V8_DEPRECATED ("No longer supported", static void DebugBreak(Isolate *isolate))
 
 V8_DEPRECATED ("No longer supported", static void CancelDebugBreak(Isolate *isolate))
 
 V8_DEPRECATED ("No longer supported", static bool CheckDebugBreak(Isolate *isolate))
 
 V8_DEPRECATED ("No longer supported", static void SetMessageHandler(Isolate *isolate, MessageHandler handler))
 
 V8_DEPRECATED ("No longer supported", static void SendCommand(Isolate *isolate, const uint16_t *command, int length, ClientData *client_data=NULL))
 
 V8_DEPRECATED ("No longer supported", static MaybeLocal< Value > Call(Local< Context > context, v8::Local< v8::Function > fun, Local< Value > data=Local< Value >()))
 
 V8_DEPRECATED ("No longer supported", static void ProcessDebugMessages(Isolate *isolate))
 
 V8_DEPRECATED ("Use v8-inspector", static Local< Context > GetDebugContext(Isolate *isolate))
 
 V8_DEPRECATED ("No longer supported", static MaybeLocal< Context > GetDebuggedContext(Isolate *isolate))
 
 V8_DEPRECATED ("No longer supported", static void SetLiveEditEnabled(Isolate *isolate, bool enable))
 
 V8_DEPRECATED ("No longer supported", static MaybeLocal< Array > GetInternalProperties(Isolate *isolate, Local< Value > value))
 
 V8_DEPRECATED ("No longer supported", static bool IsTailCallEliminationEnabled(Isolate *isolate))
 
 V8_DEPRECATED ("No longer supported", static void SetTailCallEliminationEnabled(Isolate *isolate, bool enabled))
 

Detailed Description

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

Member Typedef Documentation

◆ EventCallback

typedef void(* EventCallback) (const EventDetails &event_details)

Debug event callback function.

Parameters
event_detailsobject providing information about the debug event

A EventCallback does not take possession of the event data, and must not rely on the data persisting after the handler returns.

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

◆ MessageHandler

typedef void(* MessageHandler) (const Message &message)

This is now a no-op.

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

Member Function Documentation

◆ V8_DEPRECATED() [1/14]

V8_DEPRECATED ( "No longer supported"  ,
static bool   CheckDebugBreakIsolate *isolate 
)

◆ V8_DEPRECATED() [2/14]

V8_DEPRECATED ( "No longer supported"  ,
static bool   IsTailCallEliminationEnabledIsolate *isolate 
)

Defines if the ES2015 tail call elimination feature is enabled or not. The change of this flag triggers deoptimization of all functions that contain calls at tail position.

◆ V8_DEPRECATED() [3/14]

V8_DEPRECATED ( "No longer supported"  ,
static bool   SetDebugEventListenerIsolate *isolate, EventCallback that, Local< Value > data=Local< Value >() 
)

◆ V8_DEPRECATED() [4/14]

V8_DEPRECATED ( "No longer supported"  ,
static MaybeLocal< Array >   GetInternalPropertiesIsolate *isolate, Local< Value > value 
)

Returns array of internal properties specific to the value type. Result has the following format: [<name>,

,...,<name>,

]. Result array will be allocated in the current context.

◆ V8_DEPRECATED() [5/14]

V8_DEPRECATED ( "No longer supported"  ,
static MaybeLocal< Context >   GetDebuggedContextIsolate *isolate 
)

While in the debug context, this method returns the top-most non-debug context, if it exists.

◆ V8_DEPRECATED() [6/14]

V8_DEPRECATED ( "No longer supported"  ,
static MaybeLocal< Value >   CallLocal< Context > context, v8::Local< v8::Function > fun, Local< Value > data=Local< Value >() 
)

Run a JavaScript function in the debugger.

Parameters
funthe function to call
datapassed as second argument to the function With this call the debugger is entered and the function specified is called with the execution state as the first argument. This makes it possible to get access to information otherwise not available during normal JavaScript execution e.g. details on stack frames. Receiver of the function call will be the debugger context global object, however this is a subject to change. The following example shows a JavaScript function which when passed to v8::Debug::Call will return the current line of JavaScript execution.
function frame_source_line(exec_state) {
return exec_state.frame(0).sourceLine();
}

◆ V8_DEPRECATED() [7/14]

V8_DEPRECATED ( "No longer supported"  ,
static void   CancelDebugBreakIsolate *isolate 
)

◆ V8_DEPRECATED() [8/14]

V8_DEPRECATED ( "No longer supported"  ,
static void   DebugBreakIsolate *isolate 
)

◆ V8_DEPRECATED() [9/14]

V8_DEPRECATED ( "No longer supported"  ,
static void   ProcessDebugMessagesIsolate *isolate 
)

◆ V8_DEPRECATED() [10/14]

V8_DEPRECATED ( "No longer supported"  ,
static void   SendCommandIsolate *isolate, const uint16_t *command, int length, ClientData *client_data=NULL 
)

◆ V8_DEPRECATED() [11/14]

V8_DEPRECATED ( "No longer supported"  ,
static void   SetLiveEditEnabledIsolate *isolate, bool enable 
)

Enable/disable LiveEdit functionality for the given Isolate (default Isolate if not provided). V8 will abort if LiveEdit is unexpectedly used. LiveEdit is enabled by default.

◆ V8_DEPRECATED() [12/14]

V8_DEPRECATED ( "No longer supported"  ,
static void   SetMessageHandlerIsolate *isolate, MessageHandler handler 
)

◆ V8_DEPRECATED() [13/14]

V8_DEPRECATED ( "No longer supported"  ,
static void   SetTailCallEliminationEnabledIsolate *isolate, bool enabled 
)

◆ V8_DEPRECATED() [14/14]

V8_DEPRECATED ( "Use v8-inspector"  ,
static Local< Context >   GetDebugContextIsolate *isolate 
)

Debugger is running in its own context which is entered while debugger messages are being dispatched. This is an explicit getter for this debugger context. Note that the content of the debugger context is subject to change. The Context exists only when the debugger is active, i.e. at least one DebugEventListener or MessageHandler is set.


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