OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium 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 V8Debugger_h | 5 #ifndef V8Debugger_h |
6 #define V8Debugger_h | 6 #define V8Debugger_h |
7 | 7 |
8 #include "platform/inspector_protocol/Allocator.h" | 8 #include "platform/inspector_protocol/Allocator.h" |
9 #include "platform/inspector_protocol/Maybe.h" | 9 #include "platform/inspector_protocol/Maybe.h" |
10 #include "platform/inspector_protocol/Platform.h" | 10 #include "platform/inspector_protocol/Platform.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 public: | 29 public: |
30 V8Debugger(v8::Isolate*, V8InspectorImpl*); | 30 V8Debugger(v8::Isolate*, V8InspectorImpl*); |
31 ~V8Debugger(); | 31 ~V8Debugger(); |
32 | 32 |
33 static int contextId(v8::Local<v8::Context>); | 33 static int contextId(v8::Local<v8::Context>); |
34 static int getGroupId(v8::Local<v8::Context>); | 34 static int getGroupId(v8::Local<v8::Context>); |
35 int markContext(const V8ContextInfo&); | 35 int markContext(const V8ContextInfo&); |
36 | 36 |
37 bool enabled() const; | 37 bool enabled() const; |
38 | 38 |
39 String16 setBreakpoint(const String16& sourceID, const ScriptBreakpoint&, in
t* actualLineNumber, int* actualColumnNumber, bool interstatementLocation); | 39 String16 setBreakpoint(const String16& sourceID, const ScriptBreakpoint&, in
t* actualLineNumber, int* actualColumnNumber); |
40 void removeBreakpoint(const String16& breakpointId); | 40 void removeBreakpoint(const String16& breakpointId); |
41 void setBreakpointsActivated(bool); | 41 void setBreakpointsActivated(bool); |
42 bool breakpointsActivated() const { return m_breakpointsActivated; } | 42 bool breakpointsActivated() const { return m_breakpointsActivated; } |
43 | 43 |
44 enum PauseOnExceptionsState { | 44 enum PauseOnExceptionsState { |
45 DontPauseOnExceptions, | 45 DontPauseOnExceptions, |
46 PauseOnAllExceptions, | 46 PauseOnAllExceptions, |
47 PauseOnUncaughtExceptions | 47 PauseOnUncaughtExceptions |
48 }; | 48 }; |
49 PauseOnExceptionsState getPauseOnExceptionsState(); | 49 PauseOnExceptionsState getPauseOnExceptionsState(); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 protocol::HashSet<void*> m_recurringTasks; | 122 protocol::HashSet<void*> m_recurringTasks; |
123 int m_maxAsyncCallStackDepth; | 123 int m_maxAsyncCallStackDepth; |
124 std::vector<void*> m_currentTasks; | 124 std::vector<void*> m_currentTasks; |
125 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; | 125 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; |
126 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; | 126 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; |
127 }; | 127 }; |
128 | 128 |
129 } // namespace blink | 129 } // namespace blink |
130 | 130 |
131 #endif // V8Debugger_h | 131 #endif // V8Debugger_h |
OLD | NEW |