28 #ifndef V8_V8_DEBUG_H_ 29 #define V8_V8_DEBUG_H_ 35 typedef unsigned int uint32_t;
36 typedef unsigned short uint16_t;
37 typedef long long int64_t;
41 #if defined(BUILDING_V8_SHARED) && defined(USING_V8_SHARED) 42 #error both BUILDING_V8_SHARED and USING_V8_SHARED are set - please check the 43 build configuration to ensure that at most one of these is set 46 #ifdef BUILDING_V8_SHARED 47 #define EXPORT __declspec(dllexport) 49 #define EXPORT __declspec(dllimport) 58 #if defined(__GNUC__
) && (__GNUC__
>= 4
) && defined(V8_SHARED) 59 #define EXPORT __attribute__ ((visibility("default"))) 104 virtual bool IsEvent()
const = 0;
198 Handle<
Object> exec_state,
199 Handle<
Object> event_data,
278 bool message_handler_thread =
false);
283 static void SendCommand(
const uint16_t* command,
int length,
339 static bool EnableAgent(
const char* name,
int port,
340 bool wait_for_connection =
false);
virtual DebugEvent GetEvent() const =0
void(* MessageHandler2)(const Message &message)
virtual bool WillStartRunning() const =0
virtual Handle< Object > GetEventData() const =0
virtual Handle< Value > GetCallbackData() const =0
static Local< Context > GetDebugContext()
virtual DebugEvent GetEvent() const =0
virtual bool IsEvent() const =0
void(* EventCallback)(DebugEvent event, Handle< Object > exec_state, Handle< Object > event_data, Handle< Value > data)
virtual ClientData * GetClientData() const =0
void(* HostDispatchHandler)()
virtual bool IsResponse() const =0
static void DebugBreakForCommand(ClientData *data=NULL, Isolate *isolate=NULL)
static bool SetDebugEventListener(EventCallback that, Handle< Value > data=Handle< Value >())
static bool SetDebugEventListener(v8::Handle< v8::Object > that, Handle< Value > data=Handle< Value >())
static void SetHostDispatchHandler(HostDispatchHandler handler, int period=100)
virtual Handle< Object > GetExecutionState() const =0
virtual Handle< String > GetJSON() const =0
static bool EnableAgent(const char *name, int port, bool wait_for_connection=false)
static void SetMessageHandler(MessageHandler handler, bool message_handler_thread=false)
static void SetMessageHandler2(MessageHandler2 handler)
static void SetDebugMessageDispatchHandler(DebugMessageDispatchHandler handler, bool provide_locker=false)
virtual ClientData * GetClientData() const =0
static void CancelDebugBreak(Isolate *isolate=NULL)
static void DisableAgent()
static bool SetDebugEventListener2(EventCallback2 that, Handle< Value > data=Handle< Value >())
virtual Handle< Object > GetEventData() const =0
static Local< Value > Call(v8::Handle< v8::Function > fun, Handle< Value > data=Handle< Value >())
virtual Handle< Object > GetExecutionState() const =0
virtual Handle< Context > GetEventContext() const =0
virtual Handle< Context > GetEventContext() const =0
static void SendCommand(const uint16_t *command, int length, ClientData *client_data=NULL, Isolate *isolate=NULL)
static void DebugBreak(Isolate *isolate=NULL)
static Local< Value > GetMirror(v8::Handle< v8::Value > obj)
void(* MessageHandler)(const uint16_t *message, int length, ClientData *client_data)
void(* EventCallback2)(const EventDetails &event_details)
static void ProcessDebugMessages()
void(* DebugMessageDispatchHandler)()