OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_V8DEBUGGERAGENTIMPL_H_ | 5 #ifndef V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ |
6 #define V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ | 6 #define V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "src/base/macros.h" | 10 #include "src/base/macros.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 std::unique_ptr<protocol::Array<protocol::Debugger::CallFrame>>* | 81 std::unique_ptr<protocol::Array<protocol::Debugger::CallFrame>>* |
82 newCallFrames, | 82 newCallFrames, |
83 Maybe<protocol::Runtime::StackTrace>* asyncStackTrace) override; | 83 Maybe<protocol::Runtime::StackTrace>* asyncStackTrace) override; |
84 Response getScriptSource(const String16& scriptId, | 84 Response getScriptSource(const String16& scriptId, |
85 String16* scriptSource) override; | 85 String16* scriptSource) override; |
86 Response pause() override; | 86 Response pause() override; |
87 Response resume() override; | 87 Response resume() override; |
88 Response stepOver() override; | 88 Response stepOver() override; |
89 Response stepInto() override; | 89 Response stepInto() override; |
90 Response stepOut() override; | 90 Response stepOut() override; |
| 91 void scheduleStepIntoAsync( |
| 92 std::unique_ptr<ScheduleStepIntoAsyncCallback> callback) override; |
91 Response setPauseOnExceptions(const String16& pauseState) override; | 93 Response setPauseOnExceptions(const String16& pauseState) override; |
92 Response evaluateOnCallFrame( | 94 Response evaluateOnCallFrame( |
93 const String16& callFrameId, const String16& expression, | 95 const String16& callFrameId, const String16& expression, |
94 Maybe<String16> objectGroup, Maybe<bool> includeCommandLineAPI, | 96 Maybe<String16> objectGroup, Maybe<bool> includeCommandLineAPI, |
95 Maybe<bool> silent, Maybe<bool> returnByValue, | 97 Maybe<bool> silent, Maybe<bool> returnByValue, |
96 Maybe<bool> generatePreview, Maybe<bool> throwOnSideEffect, | 98 Maybe<bool> generatePreview, Maybe<bool> throwOnSideEffect, |
97 std::unique_ptr<protocol::Runtime::RemoteObject>* result, | 99 std::unique_ptr<protocol::Runtime::RemoteObject>* result, |
98 Maybe<protocol::Runtime::ExceptionDetails>*) override; | 100 Maybe<protocol::Runtime::ExceptionDetails>*) override; |
99 Response setVariableValue( | 101 Response setVariableValue( |
100 int scopeNumber, const String16& variableName, | 102 int scopeNumber, const String16& variableName, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 void didExecuteScript(); | 138 void didExecuteScript(); |
137 | 139 |
138 bool isFunctionBlackboxed(const String16& scriptId, | 140 bool isFunctionBlackboxed(const String16& scriptId, |
139 const v8::debug::Location& start, | 141 const v8::debug::Location& start, |
140 const v8::debug::Location& end); | 142 const v8::debug::Location& end); |
141 | 143 |
142 bool skipAllPauses() const { return m_skipAllPauses; } | 144 bool skipAllPauses() const { return m_skipAllPauses; } |
143 | 145 |
144 v8::Isolate* isolate() { return m_isolate; } | 146 v8::Isolate* isolate() { return m_isolate; } |
145 | 147 |
| 148 bool shouldBreakInScheduledAsyncTask(); |
| 149 |
146 private: | 150 private: |
147 void enableImpl(); | 151 void enableImpl(); |
148 | 152 |
149 void schedulePauseOnNextStatementIfSteppingInto(); | 153 void schedulePauseOnNextStatementIfSteppingInto(); |
150 | 154 |
151 Response currentCallFrames( | 155 Response currentCallFrames( |
152 std::unique_ptr<protocol::Array<protocol::Debugger::CallFrame>>*); | 156 std::unique_ptr<protocol::Array<protocol::Debugger::CallFrame>>*); |
153 std::unique_ptr<protocol::Runtime::StackTrace> currentAsyncStackTrace(); | 157 std::unique_ptr<protocol::Runtime::StackTrace> currentAsyncStackTrace(); |
154 | 158 |
155 void changeJavaScriptRecursionLevel(int step); | 159 void changeJavaScriptRecursionLevel(int step); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 DebuggerStep m_scheduledDebuggerStep; | 209 DebuggerStep m_scheduledDebuggerStep; |
206 bool m_javaScriptPauseScheduled; | 210 bool m_javaScriptPauseScheduled; |
207 | 211 |
208 int m_recursionLevelForStepOut; | 212 int m_recursionLevelForStepOut; |
209 bool m_skipAllPauses = false; | 213 bool m_skipAllPauses = false; |
210 | 214 |
211 std::unique_ptr<V8Regex> m_blackboxPattern; | 215 std::unique_ptr<V8Regex> m_blackboxPattern; |
212 protocol::HashMap<String16, std::vector<std::pair<int, int>>> | 216 protocol::HashMap<String16, std::vector<std::pair<int, int>>> |
213 m_blackboxedPositions; | 217 m_blackboxedPositions; |
214 | 218 |
| 219 std::unique_ptr<ScheduleStepIntoAsyncCallback> m_stepIntoAsyncCallback; |
| 220 |
215 DISALLOW_COPY_AND_ASSIGN(V8DebuggerAgentImpl); | 221 DISALLOW_COPY_AND_ASSIGN(V8DebuggerAgentImpl); |
216 }; | 222 }; |
217 | 223 |
218 } // namespace v8_inspector | 224 } // namespace v8_inspector |
219 | 225 |
220 #endif // V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ | 226 #endif // V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ |
OLD | NEW |