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

Unified Diff: src/inspector/v8-debugger.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/inspector/v8-debugger.h ('k') | src/inspector/v8-debugger-agent-impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/v8-debugger.cc
diff --git a/src/inspector/v8-debugger.cc b/src/inspector/v8-debugger.cc
index ddf78f5f8f6ef25911a83b72c8be0449218f3611..49e654cf91a58d1318fc6ebe11ccd4dd1738c430 100644
--- a/src/inspector/v8-debugger.cc
+++ b/src/inspector/v8-debugger.cc
@@ -198,6 +198,10 @@ void V8Debugger::disable() {
m_isolate->RestoreOriginalHeapLimit();
}
+bool V8Debugger::isPausedInContextGroup(int contextGroupId) const {
+ return isPaused() && m_pausedContextGroupId == contextGroupId;
+}
+
bool V8Debugger::enabled() const { return !m_debuggerScript.IsEmpty(); }
void V8Debugger::getCompiledScripts(
« no previous file with comments | « src/inspector/v8-debugger.h ('k') | src/inspector/v8-debugger-agent-impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698