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

Unified Diff: src/debug/debug.cc

Issue 1690173002: Ignore pause on debugger statement when breakpoints are disabled (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/cctest/test-debug.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/debug.cc
diff --git a/src/debug/debug.cc b/src/debug/debug.cc
index 1ea420fefe8e1eda7a9f3bf57fc02c13383d8e1f..23a486f26d4e65f16c270a42c56eefd2a5870252 100644
--- a/src/debug/debug.cc
+++ b/src/debug/debug.cc
@@ -2216,7 +2216,9 @@ void Debug::HandleDebugBreak() {
// Ignore debug break during bootstrapping.
if (isolate_->bootstrapper()->IsActive()) return;
// Just continue if breaks are disabled.
- if (break_disabled()) return;
+ if (break_disabled() ||
+ (!break_points_active_ && thread_local_.last_step_action_ == StepNone))
Yang 2016/02/12 05:56:23 Why do we need to check last_step_action_? Steppin
kozy 2016/02/12 17:22:04 Hm ,thank you for explanation. I thought that this
+ return;
// Ignore debug break if debugger is not active.
if (!is_active()) return;
« no previous file with comments | « no previous file | test/cctest/test-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698