From 26cd48fb9bc6890e8f432b488aa7234fd7ab7f0d Mon Sep 17 00:00:00 2001 From: Aleksei Koziatinskii Date: Tue, 9 Aug 2016 19:03:47 -0700 Subject: inspector: add support for uncaught exception To output exception in DevTools console method exceptionThrown should be called on uncaught exception on V8Inspector object. Additionally we need to wait disconnect to provide user way to inspect exception. PR-URL: https://github.com/nodejs/node/pull/8043 Reviewed-By: bnoordhuis - Ben Noordhuis Reviewed-By: jasnell - James M Snell Reviewed-By: ofrobots - Ali Ijaz Sheikh --- src/inspector_agent.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/inspector_agent.h') diff --git a/src/inspector_agent.h b/src/inspector_agent.h index f2b2c1a187..43433fdc6e 100644 --- a/src/inspector_agent.h +++ b/src/inspector_agent.h @@ -12,6 +12,10 @@ class Environment; namespace v8 { class Platform; +template +class Local; +class Value; +class Message; } // namespace v8 namespace node { @@ -32,6 +36,9 @@ class Agent { bool IsStarted(); bool IsConnected(); void WaitForDisconnect(); + + void FatalException(v8::Local error, + v8::Local message); private: AgentImpl* impl; }; -- cgit v1.2.3