Index: src/debug/debug-interface.h |
diff --git a/src/debug/debug-interface.h b/src/debug/debug-interface.h |
index 77deb70e4a3c365616912bcdf8a2f0bd8b40016f..2aa80dea695dd1e854923ff717ea573ee2d372b4 100644 |
--- a/src/debug/debug-interface.h |
+++ b/src/debug/debug-interface.h |
@@ -17,52 +17,6 @@ namespace v8 { |
namespace debug { |
/** |
- * An event details object passed to the debug event listener. |
- */ |
-class EventDetails : public v8::Debug::EventDetails { |
- public: |
- /** |
- * Event type. |
- */ |
- virtual v8::DebugEvent GetEvent() const = 0; |
- |
- /** |
- * Access to execution state and event data of the debug event. Don't store |
- * these cross callbacks as their content becomes invalid. |
- */ |
- virtual Local<Object> GetExecutionState() const = 0; |
- virtual Local<Object> GetEventData() const = 0; |
- |
- /** |
- * 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. |
- */ |
- virtual Local<Context> GetEventContext() const = 0; |
- |
- /** |
- * Client data passed with the corresponding callback when it was |
- * registered. |
- */ |
- virtual Local<Value> GetCallbackData() const = 0; |
- |
- virtual ~EventDetails() {} |
-}; |
- |
-/** |
- * Debug event callback function. |
- * |
- * \param event_details object 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 (*EventCallback)(const EventDetails& event_details); |
- |
-bool SetDebugEventListener(Isolate* isolate, EventCallback that, |
- Local<Value> data = Local<Value>()); |
- |
-/** |
* 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 |
@@ -205,6 +159,21 @@ typedef std::function<void(v8::Local<Script> script, bool has_compile_error, |
void SetCompileEventListener(Isolate* isolate, CompileEventListener listener, |
void* data); |
+typedef void (*BreakEventListener)(v8::Local<v8::Context> paused_context, |
+ v8::Local<v8::Object> exec_state, |
+ v8::Local<v8::Value> break_points_hit, |
+ void* data); |
+void SetBreakEventListener(Isolate* isolate, BreakEventListener listener, |
+ void* data); |
+ |
+typedef void (*ExceptionEventListener)(v8::Local<v8::Context> paused_context, |
+ v8::Local<v8::Object> exec_state, |
+ v8::Local<v8::Value> exception, |
+ bool is_promise_rejection, |
+ bool is_uncaught, void* data); |
+void SetExceptionEventListener(Isolate* isolate, |
+ ExceptionEventListener listener, void* data); |
+ |
} // namespace debug |
} // namespace v8 |