Index: src/debug.cc |
diff --git a/src/debug.cc b/src/debug.cc |
index 87780d350ccd9d4217b4e978f3588423e9fc4203..24b1d310970092fca11af6a2af22a70061df2445 100644 |
--- a/src/debug.cc |
+++ b/src/debug.cc |
@@ -1200,6 +1200,15 @@ void Debug::ChangeBreakOnException(ExceptionBreakType type, bool enable) { |
} |
+bool Debug::IsBreakOnException(ExceptionBreakType type) { |
+ if (type == BreakUncaughtException) { |
+ return break_on_uncaught_exception_; |
+ } else { |
+ return break_on_exception_; |
+ } |
+} |
+ |
+ |
void Debug::PrepareStep(StepAction step_action, int step_count) { |
HandleScope scope; |
ASSERT(Debug::InDebugger()); |