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

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

Issue 2923243002: [inspector] Return error when paused in different context group (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | src/inspector/v8-debugger.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 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // Each script inherits debug data from v8::Context where it has been 76 // Each script inherits debug data from v8::Context where it has been
77 // compiled. 77 // compiled.
78 // Only scripts whose debug data matches |contextGroupId| will be reported. 78 // Only scripts whose debug data matches |contextGroupId| will be reported.
79 // Passing 0 will result in reporting all scripts. 79 // Passing 0 will result in reporting all scripts.
80 void getCompiledScripts(int contextGroupId, 80 void getCompiledScripts(int contextGroupId,
81 std::vector<std::unique_ptr<V8DebuggerScript>>&); 81 std::vector<std::unique_ptr<V8DebuggerScript>>&);
82 void enable(); 82 void enable();
83 void disable(); 83 void disable();
84 84
85 bool isPaused() const { return m_pausedContextGroupId; } 85 bool isPaused() const { return m_pausedContextGroupId; }
86 bool isPausedInContextGroup(int contextGroupId) const;
86 v8::Local<v8::Context> pausedContext() { return m_pausedContext; } 87 v8::Local<v8::Context> pausedContext() { return m_pausedContext; }
87 88
88 int maxAsyncCallChainDepth() { return m_maxAsyncCallStackDepth; } 89 int maxAsyncCallChainDepth() { return m_maxAsyncCallStackDepth; }
89 void setAsyncCallStackDepth(V8DebuggerAgentImpl*, int); 90 void setAsyncCallStackDepth(V8DebuggerAgentImpl*, int);
90 91
91 std::shared_ptr<AsyncStackTrace> currentAsyncParent(); 92 std::shared_ptr<AsyncStackTrace> currentAsyncParent();
92 std::shared_ptr<AsyncStackTrace> currentAsyncCreation(); 93 std::shared_ptr<AsyncStackTrace> currentAsyncCreation();
93 94
94 std::shared_ptr<StackFrame> symbolize(v8::Local<v8::StackFrame> v8Frame); 95 std::shared_ptr<StackFrame> symbolize(v8::Local<v8::StackFrame> v8Frame);
95 96
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 v8::debug::ExceptionBreakState m_pauseOnExceptionsState; 227 v8::debug::ExceptionBreakState m_pauseOnExceptionsState;
227 228
228 WasmTranslation m_wasmTranslation; 229 WasmTranslation m_wasmTranslation;
229 230
230 DISALLOW_COPY_AND_ASSIGN(V8Debugger); 231 DISALLOW_COPY_AND_ASSIGN(V8Debugger);
231 }; 232 };
232 233
233 } // namespace v8_inspector 234 } // namespace v8_inspector
234 235
235 #endif // V8_INSPECTOR_V8DEBUGGER_H_ 236 #endif // V8_INSPECTOR_V8DEBUGGER_H_
OLDNEW
« no previous file with comments | « no previous file | src/inspector/v8-debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698