| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 int* actualColumnNumber); | 45 int* actualColumnNumber); |
| 46 void removeBreakpoint(const String16& breakpointId); | 46 void removeBreakpoint(const String16& breakpointId); |
| 47 void setBreakpointsActivated(bool); | 47 void setBreakpointsActivated(bool); |
| 48 bool breakpointsActivated() const { return m_breakpointsActivated; } | 48 bool breakpointsActivated() const { return m_breakpointsActivated; } |
| 49 | 49 |
| 50 v8::debug::ExceptionBreakState getPauseOnExceptionsState(); | 50 v8::debug::ExceptionBreakState getPauseOnExceptionsState(); |
| 51 void setPauseOnExceptionsState(v8::debug::ExceptionBreakState); | 51 void setPauseOnExceptionsState(v8::debug::ExceptionBreakState); |
| 52 bool canBreakProgram(); | 52 bool canBreakProgram(); |
| 53 void breakProgram(int targetContextGroupId); | 53 void breakProgram(int targetContextGroupId); |
| 54 void continueProgram(int targetContextGroupId); | 54 void continueProgram(int targetContextGroupId); |
| 55 void breakProgramOnAssert(int targetContextGroupId); |
| 55 | 56 |
| 56 void setPauseOnNextStatement(bool, int targetContextGroupId); | 57 void setPauseOnNextStatement(bool, int targetContextGroupId); |
| 57 void stepIntoStatement(int targetContextGroupId); | 58 void stepIntoStatement(int targetContextGroupId); |
| 58 void stepOverStatement(int targetContextGroupId); | 59 void stepOverStatement(int targetContextGroupId); |
| 59 void stepOutOfFunction(int targetContextGroupId); | 60 void stepOutOfFunction(int targetContextGroupId); |
| 60 void scheduleStepIntoAsync( | 61 void scheduleStepIntoAsync( |
| 61 std::unique_ptr<ScheduleStepIntoAsyncCallback> callback, | 62 std::unique_ptr<ScheduleStepIntoAsyncCallback> callback, |
| 62 int targetContextGroupId); | 63 int targetContextGroupId); |
| 63 | 64 |
| 64 Response continueToLocation(int targetContextGroupId, | 65 Response continueToLocation(int targetContextGroupId, |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 v8::Isolate* m_isolate; | 182 v8::Isolate* m_isolate; |
| 182 V8InspectorImpl* m_inspector; | 183 V8InspectorImpl* m_inspector; |
| 183 int m_enableCount; | 184 int m_enableCount; |
| 184 bool m_breakpointsActivated; | 185 bool m_breakpointsActivated; |
| 185 v8::Global<v8::Object> m_debuggerScript; | 186 v8::Global<v8::Object> m_debuggerScript; |
| 186 v8::Global<v8::Context> m_debuggerContext; | 187 v8::Global<v8::Context> m_debuggerContext; |
| 187 v8::Local<v8::Object> m_executionState; | 188 v8::Local<v8::Object> m_executionState; |
| 188 v8::Local<v8::Context> m_pausedContext; | 189 v8::Local<v8::Context> m_pausedContext; |
| 189 int m_ignoreScriptParsedEventsCounter; | 190 int m_ignoreScriptParsedEventsCounter; |
| 190 bool m_scheduledOOMBreak = false; | 191 bool m_scheduledOOMBreak = false; |
| 192 bool m_scheduledAssertBreak = false; |
| 191 int m_targetContextGroupId = 0; | 193 int m_targetContextGroupId = 0; |
| 192 int m_pausedContextGroupId = 0; | 194 int m_pausedContextGroupId = 0; |
| 193 String16 m_continueToLocationBreakpointId; | 195 String16 m_continueToLocationBreakpointId; |
| 194 String16 m_continueToLocationTargetCallFrames; | 196 String16 m_continueToLocationTargetCallFrames; |
| 195 std::unique_ptr<V8StackTraceImpl> m_continueToLocationStack; | 197 std::unique_ptr<V8StackTraceImpl> m_continueToLocationStack; |
| 196 | 198 |
| 197 using AsyncTaskToStackTrace = | 199 using AsyncTaskToStackTrace = |
| 198 protocol::HashMap<void*, std::weak_ptr<AsyncStackTrace>>; | 200 protocol::HashMap<void*, std::weak_ptr<AsyncStackTrace>>; |
| 199 AsyncTaskToStackTrace m_asyncTaskStacks; | 201 AsyncTaskToStackTrace m_asyncTaskStacks; |
| 200 AsyncTaskToStackTrace m_asyncTaskCreationStacks; | 202 AsyncTaskToStackTrace m_asyncTaskCreationStacks; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 224 v8::debug::ExceptionBreakState m_pauseOnExceptionsState; | 226 v8::debug::ExceptionBreakState m_pauseOnExceptionsState; |
| 225 | 227 |
| 226 WasmTranslation m_wasmTranslation; | 228 WasmTranslation m_wasmTranslation; |
| 227 | 229 |
| 228 DISALLOW_COPY_AND_ASSIGN(V8Debugger); | 230 DISALLOW_COPY_AND_ASSIGN(V8Debugger); |
| 229 }; | 231 }; |
| 230 | 232 |
| 231 } // namespace v8_inspector | 233 } // namespace v8_inspector |
| 232 | 234 |
| 233 #endif // V8_INSPECTOR_V8DEBUGGER_H_ | 235 #endif // V8_INSPECTOR_V8DEBUGGER_H_ |
| OLD | NEW |