Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: src/inspector/v8-debugger-agent-impl.h

Issue 2678313002: [inspector] support for nested scheduled breaks (Closed)
Patch Set: better test Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/inspector/js_protocol.json ('k') | src/inspector/v8-debugger-agent-impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 V8InspectorSessionImpl* m_session; 184 V8InspectorSessionImpl* m_session;
185 bool m_enabled; 185 bool m_enabled;
186 protocol::DictionaryValue* m_state; 186 protocol::DictionaryValue* m_state;
187 protocol::Debugger::Frontend m_frontend; 187 protocol::Debugger::Frontend m_frontend;
188 v8::Isolate* m_isolate; 188 v8::Isolate* m_isolate;
189 JavaScriptCallFrames m_pausedCallFrames; 189 JavaScriptCallFrames m_pausedCallFrames;
190 ScriptsMap m_scripts; 190 ScriptsMap m_scripts;
191 BreakpointIdToDebuggerBreakpointIdsMap m_breakpointIdToDebuggerBreakpointIds; 191 BreakpointIdToDebuggerBreakpointIdsMap m_breakpointIdToDebuggerBreakpointIds;
192 DebugServerBreakpointToBreakpointIdAndSourceMap m_serverBreakpoints; 192 DebugServerBreakpointToBreakpointIdAndSourceMap m_serverBreakpoints;
193 String16 m_continueToLocationBreakpointId; 193 String16 m_continueToLocationBreakpointId;
194 String16 m_breakReason; 194
195 std::unique_ptr<protocol::DictionaryValue> m_breakAuxData; 195 using BreakReason =
196 std::pair<String16, std::unique_ptr<protocol::DictionaryValue>>;
197 std::vector<BreakReason> m_breakReason;
198
199 void pushBreakDetails(
200 const String16& breakReason,
201 std::unique_ptr<protocol::DictionaryValue> breakAuxData);
202 void popBreakDetails();
203
196 DebuggerStep m_scheduledDebuggerStep; 204 DebuggerStep m_scheduledDebuggerStep;
197 bool m_javaScriptPauseScheduled; 205 bool m_javaScriptPauseScheduled;
198 206
199 int m_recursionLevelForStepOut; 207 int m_recursionLevelForStepOut;
200 bool m_skipAllPauses = false; 208 bool m_skipAllPauses = false;
201 209
202 std::unique_ptr<V8Regex> m_blackboxPattern; 210 std::unique_ptr<V8Regex> m_blackboxPattern;
203 protocol::HashMap<String16, std::vector<std::pair<int, int>>> 211 protocol::HashMap<String16, std::vector<std::pair<int, int>>>
204 m_blackboxedPositions; 212 m_blackboxedPositions;
205 213
206 DISALLOW_COPY_AND_ASSIGN(V8DebuggerAgentImpl); 214 DISALLOW_COPY_AND_ASSIGN(V8DebuggerAgentImpl);
207 }; 215 };
208 216
209 } // namespace v8_inspector 217 } // namespace v8_inspector
210 218
211 #endif // V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_ 219 #endif // V8_INSPECTOR_V8DEBUGGERAGENTIMPL_H_
OLDNEW
« no previous file with comments | « src/inspector/js_protocol.json ('k') | src/inspector/v8-debugger-agent-impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698