OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ | 5 #ifndef V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ |
6 #define V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ | 6 #define V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "src/base/macros.h" | 10 #include "src/base/macros.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 int columnNumber, BreakpointSource, | 115 int columnNumber, BreakpointSource, |
116 const String16& condition = String16()); | 116 const String16& condition = String16()); |
117 void removeBreakpointAt(const String16& scriptId, int lineNumber, | 117 void removeBreakpointAt(const String16& scriptId, int lineNumber, |
118 int columnNumber, BreakpointSource); | 118 int columnNumber, BreakpointSource); |
119 void schedulePauseOnNextStatement( | 119 void schedulePauseOnNextStatement( |
120 const String16& breakReason, | 120 const String16& breakReason, |
121 std::unique_ptr<protocol::DictionaryValue> data); | 121 std::unique_ptr<protocol::DictionaryValue> data); |
122 void cancelPauseOnNextStatement(); | 122 void cancelPauseOnNextStatement(); |
123 void breakProgram(const String16& breakReason, | 123 void breakProgram(const String16& breakReason, |
124 std::unique_ptr<protocol::DictionaryValue> data); | 124 std::unique_ptr<protocol::DictionaryValue> data); |
125 void breakProgramOnException(const String16& breakReason, | |
126 std::unique_ptr<protocol::DictionaryValue> data); | |
127 | 125 |
128 void reset(); | 126 void reset(); |
129 | 127 |
130 // Interface for V8InspectorImpl | 128 // Interface for V8InspectorImpl |
131 void didPause(int contextId, v8::Local<v8::Value> exception, | 129 void didPause(int contextId, v8::Local<v8::Value> exception, |
132 const std::vector<String16>& hitBreakpoints, | 130 const std::vector<String16>& hitBreakpoints, |
133 bool isPromiseRejection, bool isUncaught, bool isOOMBreak); | 131 bool isPromiseRejection, bool isUncaught, bool isOOMBreak, |
| 132 bool isAssert); |
134 void didContinue(); | 133 void didContinue(); |
135 void didParseSource(std::unique_ptr<V8DebuggerScript>, bool success); | 134 void didParseSource(std::unique_ptr<V8DebuggerScript>, bool success); |
136 | 135 |
137 bool isFunctionBlackboxed(const String16& scriptId, | 136 bool isFunctionBlackboxed(const String16& scriptId, |
138 const v8::debug::Location& start, | 137 const v8::debug::Location& start, |
139 const v8::debug::Location& end); | 138 const v8::debug::Location& end); |
140 | 139 |
141 bool skipAllPauses() const { return m_skipAllPauses; } | 140 bool skipAllPauses() const { return m_skipAllPauses; } |
142 | 141 |
143 v8::Isolate* isolate() { return m_isolate; } | 142 v8::Isolate* isolate() { return m_isolate; } |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 std::unique_ptr<V8Regex> m_blackboxPattern; | 198 std::unique_ptr<V8Regex> m_blackboxPattern; |
200 protocol::HashMap<String16, std::vector<std::pair<int, int>>> | 199 protocol::HashMap<String16, std::vector<std::pair<int, int>>> |
201 m_blackboxedPositions; | 200 m_blackboxedPositions; |
202 | 201 |
203 DISALLOW_COPY_AND_ASSIGN(V8DebuggerAgentImpl); | 202 DISALLOW_COPY_AND_ASSIGN(V8DebuggerAgentImpl); |
204 }; | 203 }; |
205 | 204 |
206 } // namespace v8_inspector | 205 } // namespace v8_inspector |
207 | 206 |
208 #endif // V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ | 207 #endif // V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ |
OLD | NEW |