OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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_V8DEBUGGER_H_ | 5 #ifndef V8_INSPECTOR_V8DEBUGGER_H_ |
6 #define V8_INSPECTOR_V8DEBUGGER_H_ | 6 #define V8_INSPECTOR_V8DEBUGGER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 // Each script inherits debug data from v8::Context where it has been | 76 // Each script inherits debug data from v8::Context where it has been |
77 // compiled. | 77 // compiled. |
78 // Only scripts whose debug data matches |contextGroupId| will be reported. | 78 // Only scripts whose debug data matches |contextGroupId| will be reported. |
79 // Passing 0 will result in reporting all scripts. | 79 // Passing 0 will result in reporting all scripts. |
80 void getCompiledScripts(int contextGroupId, | 80 void getCompiledScripts(int contextGroupId, |
81 std::vector<std::unique_ptr<V8DebuggerScript>>&); | 81 std::vector<std::unique_ptr<V8DebuggerScript>>&); |
82 void enable(); | 82 void enable(); |
83 void disable(); | 83 void disable(); |
84 | 84 |
85 bool isPaused() const { return m_pausedContextGroupId; } | 85 bool isPaused() const { return m_pausedContextGroupId; } |
| 86 bool isPausedInContextGroup(int contextGroupId) const; |
86 v8::Local<v8::Context> pausedContext() { return m_pausedContext; } | 87 v8::Local<v8::Context> pausedContext() { return m_pausedContext; } |
87 | 88 |
88 int maxAsyncCallChainDepth() { return m_maxAsyncCallStackDepth; } | 89 int maxAsyncCallChainDepth() { return m_maxAsyncCallStackDepth; } |
89 void setAsyncCallStackDepth(V8DebuggerAgentImpl*, int); | 90 void setAsyncCallStackDepth(V8DebuggerAgentImpl*, int); |
90 | 91 |
91 std::shared_ptr<AsyncStackTrace> currentAsyncParent(); | 92 std::shared_ptr<AsyncStackTrace> currentAsyncParent(); |
92 std::shared_ptr<AsyncStackTrace> currentAsyncCreation(); | 93 std::shared_ptr<AsyncStackTrace> currentAsyncCreation(); |
93 | 94 |
94 std::shared_ptr<StackFrame> symbolize(v8::Local<v8::StackFrame> v8Frame); | 95 std::shared_ptr<StackFrame> symbolize(v8::Local<v8::StackFrame> v8Frame); |
95 | 96 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 v8::debug::ExceptionBreakState m_pauseOnExceptionsState; | 227 v8::debug::ExceptionBreakState m_pauseOnExceptionsState; |
227 | 228 |
228 WasmTranslation m_wasmTranslation; | 229 WasmTranslation m_wasmTranslation; |
229 | 230 |
230 DISALLOW_COPY_AND_ASSIGN(V8Debugger); | 231 DISALLOW_COPY_AND_ASSIGN(V8Debugger); |
231 }; | 232 }; |
232 | 233 |
233 } // namespace v8_inspector | 234 } // namespace v8_inspector |
234 | 235 |
235 #endif // V8_INSPECTOR_V8DEBUGGER_H_ | 236 #endif // V8_INSPECTOR_V8DEBUGGER_H_ |
OLD | NEW |