Chromium Code Reviews| Index: src/debug/debug.cc |
| diff --git a/src/debug/debug.cc b/src/debug/debug.cc |
| index de7cc2315d02397e85f54388772acf6f4da68b67..f706bca189f1121fbc88dc14659b2f8ab2f8a90e 100644 |
| --- a/src/debug/debug.cc |
| +++ b/src/debug/debug.cc |
| @@ -40,6 +40,7 @@ Debug::Debug(Isolate* isolate) |
| in_debug_event_listener_(false), |
| break_on_exception_(false), |
| break_on_uncaught_exception_(false), |
| + break_in_nondebuggable_(false), |
| debug_info_list_(NULL), |
| isolate_(isolate) { |
| ThreadInit(); |
| @@ -2277,7 +2278,9 @@ void Debug::HandleDebugBreak() { |
| Object* fun = it.frame()->function(); |
| if (fun && fun->IsJSFunction()) { |
| // Don't stop in builtin functions. |
| - if (!JSFunction::cast(fun)->IsSubjectToDebugging()) return; |
| + if (!(JSFunction::cast(fun)->IsSubjectToDebugging() || |
| + break_in_nondebuggable_)) |
|
Yang
2015/09/01 01:55:48
please add brackets around return
binji
2015/09/16 17:17:54
Done.
|
| + return; |
| GlobalObject* global = JSFunction::cast(fun)->context()->global_object(); |
| // Don't stop in debugger functions. |
| if (IsDebugGlobal(global)) return; |