summaryrefslogtreecommitdiff
path: root/src/inspector_agent.h
diff options
context:
space:
mode:
authorAleksei Koziatinskii <ak239spb@gmail.com>2016-08-09 19:03:47 -0700
committerAli Ijaz Sheikh <ofrobots@google.com>2016-08-15 09:11:52 -0700
commit26cd48fb9bc6890e8f432b488aa7234fd7ab7f0d (patch)
treec920bfebe78857447c4316ecd9d7c12423327cd5 /src/inspector_agent.h
parentcb2e83e5730b75e150766a324d08617444f1b933 (diff)
downloadandroid-node-v8-26cd48fb9bc6890e8f432b488aa7234fd7ab7f0d.tar.gz
android-node-v8-26cd48fb9bc6890e8f432b488aa7234fd7ab7f0d.tar.bz2
android-node-v8-26cd48fb9bc6890e8f432b488aa7234fd7ab7f0d.zip
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.h7
1 files changed, 7 insertions, 0 deletions
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<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;
};