diff options
author | Aleksei Koziatinskii <ak239spb@gmail.com> | 2016-08-10 05:03:47 +0300 |
---|---|---|
committer | Ali Ijaz Sheikh <ofrobots@google.com> | 2016-08-15 19:11:52 +0300 |
commit | 26cd48fb9bc6890e8f432b488aa7234fd7ab7f0d (patch) | |
tree | c920bfebe78857447c4316ecd9d7c12423327cd5 /src/inspector_agent.h | |
parent | cb2e83e5730b75e150766a324d08617444f1b933 (diff) |
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 <info@bnoordhuis.nl>
Reviewed-By: jasnell - James M Snell <jasnell@gmail.com>
Reviewed-By: ofrobots - Ali Ijaz Sheikh <ofrobots@google.com>
Diffstat (limited to 'src/inspector_agent.h')
-rw-r--r-- | src/inspector_agent.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/inspector_agent.h b/src/inspector_agent.h index f2b2c1a187b..43433fdc6e6 100644 --- a/src/inspector_agent.h +++ b/src/inspector_agent.h @@ -12,6 +12,10 @@ class Environment; namespace v8 { class Platform; +template<typename T> +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<v8::Value> error, + v8::Local<v8::Message> message); private: AgentImpl* impl; }; |