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 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&, | 39 String16 setBreakpoint(const ScriptBreakpoint&, int* actualLineNumber, |
40 int* actualLineNumber, int* actualColumnNumber); | 40 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 v8::DebugInterface::ExceptionBreakState getPauseOnExceptionsState(); | 45 v8::DebugInterface::ExceptionBreakState getPauseOnExceptionsState(); |
46 void setPauseOnExceptionsState(v8::DebugInterface::ExceptionBreakState); | 46 void setPauseOnExceptionsState(v8::DebugInterface::ExceptionBreakState); |
47 void setPauseOnNextStatement(bool); | 47 void setPauseOnNextStatement(bool); |
48 bool canBreakProgram(); | 48 bool canBreakProgram(); |
49 void breakProgram(); | 49 void breakProgram(); |
50 void continueProgram(); | 50 void continueProgram(); |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; | 148 protocol::HashMap<V8DebuggerAgentImpl*, int> m_maxAsyncCallStackDepthMap; |
149 | 149 |
150 v8::DebugInterface::ExceptionBreakState m_pauseOnExceptionsState; | 150 v8::DebugInterface::ExceptionBreakState m_pauseOnExceptionsState; |
151 | 151 |
152 DISALLOW_COPY_AND_ASSIGN(V8Debugger); | 152 DISALLOW_COPY_AND_ASSIGN(V8Debugger); |
153 }; | 153 }; |
154 | 154 |
155 } // namespace v8_inspector | 155 } // namespace v8_inspector |
156 | 156 |
157 #endif // V8_INSPECTOR_V8DEBUGGER_H_ | 157 #endif // V8_INSPECTOR_V8DEBUGGER_H_ |
OLD | NEW |