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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "src/base/macros.h" | 10 #include "src/base/macros.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 // Each script inherits debug data from v8::Context where it has been | 59 // Each script inherits debug data from v8::Context where it has been |
60 // compiled. | 60 // compiled. |
61 // Only scripts whose debug data matches |contextGroupId| will be reported. | 61 // Only scripts whose debug data matches |contextGroupId| will be reported. |
62 // Passing 0 will result in reporting all scripts. | 62 // Passing 0 will result in reporting all scripts. |
63 void getCompiledScripts(int contextGroupId, | 63 void getCompiledScripts(int contextGroupId, |
64 std::vector<std::unique_ptr<V8DebuggerScript>>&); | 64 std::vector<std::unique_ptr<V8DebuggerScript>>&); |
65 void enable(); | 65 void enable(); |
66 void disable(); | 66 void disable(); |
67 | 67 |
68 bool isPaused(); | 68 bool isPaused() const { return m_runningNestedMessageLoop; } |
69 v8::Local<v8::Context> pausedContext() { return m_pausedContext; } | 69 v8::Local<v8::Context> pausedContext() { return m_pausedContext; } |
70 | 70 |
71 int maxAsyncCallChainDepth() { return m_maxAsyncCallStackDepth; } | 71 int maxAsyncCallChainDepth() { return m_maxAsyncCallStackDepth; } |
72 V8StackTraceImpl* currentAsyncCallChain(); | 72 V8StackTraceImpl* currentAsyncCallChain(); |
73 void setAsyncCallStackDepth(V8DebuggerAgentImpl*, int); | 73 void setAsyncCallStackDepth(V8DebuggerAgentImpl*, int); |
74 std::unique_ptr<V8StackTraceImpl> createStackTrace(v8::Local<v8::StackTrace>); | 74 std::unique_ptr<V8StackTraceImpl> createStackTrace(v8::Local<v8::StackTrace>); |
75 std::unique_ptr<V8StackTraceImpl> captureStackTrace(bool fullStack); | 75 std::unique_ptr<V8StackTraceImpl> captureStackTrace(bool fullStack); |
76 | 76 |
77 v8::MaybeLocal<v8::Array> internalProperties(v8::Local<v8::Context>, | 77 v8::MaybeLocal<v8::Array> internalProperties(v8::Local<v8::Context>, |
78 v8::Local<v8::Value>); | 78 v8::Local<v8::Value>); |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 v8::debug::ExceptionBreakState m_pauseOnExceptionsState; | 182 v8::debug::ExceptionBreakState m_pauseOnExceptionsState; |
183 | 183 |
184 WasmTranslation m_wasmTranslation; | 184 WasmTranslation m_wasmTranslation; |
185 | 185 |
186 DISALLOW_COPY_AND_ASSIGN(V8Debugger); | 186 DISALLOW_COPY_AND_ASSIGN(V8Debugger); |
187 }; | 187 }; |
188 | 188 |
189 } // namespace v8_inspector | 189 } // namespace v8_inspector |
190 | 190 |
191 #endif // V8_INSPECTOR_V8DEBUGGER_H_ | 191 #endif // V8_INSPECTOR_V8DEBUGGER_H_ |
OLD | NEW |