diff src/sighandlers.cc @ 10194:d4f813c3f5ed

more debug mode fixes
author John W. Eaton <jwe@octave.org>
date Sat, 23 Jan 2010 11:19:46 -0500
parents 0522a65bcd56
children f751dae7aab8
line wrap: on
line diff
--- a/src/sighandlers.cc	Fri Jan 22 16:54:59 2010 -0500
+++ b/src/sighandlers.cc	Sat Jan 23 11:19:46 2010 -0500
@@ -40,6 +40,7 @@
 #include "debug.h"
 #include "defun.h"
 #include "error.h"
+#include "input.h"
 #include "load-save.h"
 #include "oct-map.h"
 #include "pager.h"
@@ -375,7 +376,8 @@
 	    {
 	      // Clear the flag and do normal interrupt stuff.
 
-	      tree_evaluator::debug_mode = bp_table::have_breakpoints ();
+	      tree_evaluator::debug_mode
+                = bp_table::have_breakpoints () || Vdebugging;
 	      octave_debug_on_interrupt_state = false;
 	    }
 	}