Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksei Koziatinskii <ak239spb@gmail.com>2016-08-10 05:03:47 +0300
committerAli Ijaz Sheikh <ofrobots@google.com>2016-08-15 19:11:52 +0300
commit26cd48fb9bc6890e8f432b488aa7234fd7ab7f0d (patch)
treec920bfebe78857447c4316ecd9d7c12423327cd5 /src/inspector_agent.h
parentcb2e83e5730b75e150766a324d08617444f1b933 (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.h7
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;
};