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 24 matching lines...) Expand all Loading... |
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&, | 39 String16 setBreakpoint(const String16& sourceID, const ScriptBreakpoint&, |
40 int* actualLineNumber, int* actualColumnNumber); | 40 int* actualLineNumber, int* actualColumnNumber); |
41 void removeBreakpoint(const String16& breakpointId); | 41 void removeBreakpoint(const String16& breakpointId); |
42 void setBreakpointsActivated(bool); | 42 void setBreakpointsActivated(bool); |
43 bool breakpointsActivated() const { return m_breakpointsActivated; } | 43 bool breakpointsActivated() const { return m_breakpointsActivated; } |
44 | 44 |
45 enum PauseOnExceptionsState { | 45 v8::DebugInterface::ExceptionBreakState getPauseOnExceptionsState(); |
46 DontPauseOnExceptions, | 46 void setPauseOnExceptionsState(v8::DebugInterface::ExceptionBreakState); |
47 PauseOnAllExceptions, | |
48 PauseOnUncaughtExceptions | |
49 }; | |
50 PauseOnExceptionsState getPauseOnExceptionsState(); | |
51 void setPauseOnExceptionsState(PauseOnExceptionsState); | |
52 void setPauseOnNextStatement(bool); | 47 void setPauseOnNextStatement(bool); |
53 bool canBreakProgram(); | 48 bool canBreakProgram(); |
54 void breakProgram(); | 49 void breakProgram(); |
55 void continueProgram(); | 50 void continueProgram(); |
56 void stepIntoStatement(); | 51 void stepIntoStatement(); |
57 void stepOverStatement(); | 52 void stepOverStatement(); |
58 void stepOutOfFunction(); | 53 void stepOutOfFunction(); |
59 void clearStepping(); | 54 void clearStepping(); |
60 | 55 |
61 bool setScriptSource(const String16& sourceID, | 56 bool setScriptSource(const String16& sourceID, |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 140 |
146 using AsyncTaskToStackTrace = | 141 using AsyncTaskToStackTrace = |
147 protocol::HashMap<void*, std::unique_ptr<V8StackTraceImpl>>; | 142 protocol::HashMap<void*, std::unique_ptr<V8StackTraceImpl>>; |
148 AsyncTaskToStackTrace m_asyncTaskStacks; | 143 AsyncTaskToStackTrace m_asyncTaskStacks; |
149 protocol::HashSet<void*> m_recurringTasks; | 144 protocol::HashSet<void*> m_recurringTasks; |
150 int m_maxAsyncCallStackDepth; | 145 int m_maxAsyncCallStackDepth; |
151 std::vector<void*> m_currentTasks; | 146 std::vector<void*> m_currentTasks; |
152 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; | 147 std::vector<std::unique_ptr<V8StackTraceImpl>> m_currentStacks; |
153 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; | 148 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; |
154 | 149 |
| 150 v8::DebugInterface::ExceptionBreakState m_pauseOnExceptionsState; |
| 151 |
155 DISALLOW_COPY_AND_ASSIGN(V8Debugger); | 152 DISALLOW_COPY_AND_ASSIGN(V8Debugger); |
156 }; | 153 }; |
157 | 154 |
158 } // namespace v8_inspector | 155 } // namespace v8_inspector |
159 | 156 |
160 #endif // V8_INSPECTOR_V8DEBUGGER_H_ | 157 #endif // V8_INSPECTOR_V8DEBUGGER_H_ |
OLD | NEW |