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/InspectorProtocol.h" | 8 #include "platform/inspector_protocol/InspectorProtocol.h" |
9 #include "platform/v8_inspector/JavaScriptCallFrame.h" | 9 #include "platform/v8_inspector/JavaScriptCallFrame.h" |
10 #include "platform/v8_inspector/V8DebuggerScript.h" | 10 #include "platform/v8_inspector/V8DebuggerScript.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 void setPauseOnExceptionsState(PauseOnExceptionsState); | 50 void setPauseOnExceptionsState(PauseOnExceptionsState); |
51 void setPauseOnNextStatement(bool); | 51 void setPauseOnNextStatement(bool); |
52 bool canBreakProgram(); | 52 bool canBreakProgram(); |
53 void breakProgram(); | 53 void breakProgram(); |
54 void continueProgram(); | 54 void continueProgram(); |
55 void stepIntoStatement(); | 55 void stepIntoStatement(); |
56 void stepOverStatement(); | 56 void stepOverStatement(); |
57 void stepOutOfFunction(); | 57 void stepOutOfFunction(); |
58 void clearStepping(); | 58 void clearStepping(); |
59 | 59 |
60 bool setScriptSource(const String16& sourceID, v8::Local<v8::String> newSour
ce, bool preview, ErrorString*, protocol::Maybe<protocol::Runtime::ExceptionDeta
ils>*, JavaScriptCallFrames* newCallFrames, protocol::Maybe<bool>* stackChanged)
; | 60 bool setScriptSource(const String16& sourceID, v8::Local<v8::String> newSour
ce, bool dryRun, ErrorString*, protocol::Maybe<protocol::Runtime::ExceptionDetai
ls>*, JavaScriptCallFrames* newCallFrames, protocol::Maybe<bool>* stackChanged); |
61 JavaScriptCallFrames currentCallFrames(int limit = 0); | 61 JavaScriptCallFrames currentCallFrames(int limit = 0); |
62 | 62 |
63 // Each script inherits debug data from v8::Context where it has been compil
ed. | 63 // Each script inherits debug data from v8::Context where it has been compil
ed. |
64 // Only scripts whose debug data matches |contextGroupId| will be reported. | 64 // Only scripts whose debug data matches |contextGroupId| will be reported. |
65 // Passing 0 will result in reporting all scripts. | 65 // Passing 0 will result in reporting all scripts. |
66 void getCompiledScripts(int contextGroupId, std::vector<std::unique_ptr<V8De
buggerScript>>&); | 66 void getCompiledScripts(int contextGroupId, std::vector<std::unique_ptr<V8De
buggerScript>>&); |
67 void enable(); | 67 void enable(); |
68 void disable(); | 68 void disable(); |
69 | 69 |
70 bool isPaused(); | 70 bool isPaused(); |
(...skipping 51 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 v8_inspector | 129 } // namespace v8_inspector |
130 | 130 |
131 #endif // V8Debugger_h | 131 #endif // V8Debugger_h |
OLD | NEW |