V8 API Reference Guide for node.js v9.8.0
Classes | Public Types | Public Member Functions | List of all members
v8::Debug Class Reference


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))

Member Typedef Documentation

typedef void(* v8::Debug::EventCallback) (const EventDetails &event_details)

Debug event callback function.

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.

typedef void(* v8::Debug::MessageHandler) (const Message &message)

This is now a no-op.

Member Function Documentation

v8::Debug::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.

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::Debug::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.

v8::Debug::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::Debug::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::Debug::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>,


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

v8::Debug::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.

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