title: How can we get Spyder to pause execution after an error has occurred?
body: <p>I'm debugging a program, and I would like it if Spyder could pause execution at an error. <a href="https://groups.google.com/forum/#!topic/spyderlib/PUjT5K95UlY" rel="noreferrer">I had read previously</a> that this can be done without breakpoints by just running scripts in Debug mode, but that isn't working for me.</p>
  
  <p>Eg, when I run the following script in Debug mode in Spyder, it just errors out at the index out of range exception without giving me any opportunity in ipdb to play with the variables.</p>
  
  <pre><code>import numpy as np   
  
  A = np.random.randn(5)
  
  A[7] = 8 #IndexError
  </code></pre>
  
  <p>More specifically, when I start debug, it starts me at the first line, then when I press Continue, execution proceeds all the way through line 3 without giving me a chance to inspect the workspace before execution exits.  </p>
  
  <p>Any thoughts?</p>
  
  <p>Thanks.</p>