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

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

Issue 2738503006: [inspector] don't make v8::debug::Call for breakProgram. (Closed)
Patch Set: addressed comments Created 3 years, 9 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.cc ('k') | src/runtime/runtime-debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/v8-debugger-agent-impl.cc
diff --git a/src/inspector/v8-debugger-agent-impl.cc b/src/inspector/v8-debugger-agent-impl.cc
index 26de7861f74f464996bac88e5e7ef707aff6e30e..6648696593259e72eb725c292d43d5de4ec48342 100644
--- a/src/inspector/v8-debugger-agent-impl.cc
+++ b/src/inspector/v8-debugger-agent-impl.cc
@@ -1309,6 +1309,9 @@ void V8DebuggerAgentImpl::breakProgram(
m_debugger->breakProgram();
popBreakDetails();
m_breakReason.swap(currentScheduledReason);
+ if (!m_breakReason.empty()) {
+ m_debugger->setPauseOnNextStatement(true);
+ }
}
void V8DebuggerAgentImpl::breakProgramOnException(
« no previous file with comments | « src/inspector/v8-debugger.cc ('k') | src/runtime/runtime-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698