debugging, pycharm stops code at error


Using pycharm 2.7 I used to have some feature activated where if there is an error, whether it be TypeError or IndexError, Pycharm would stop the code right at the place where the error is and then I could look at the variables to see what the problem is.  Instead what happens is that it will exit out of the code and tell me at what line the error is located.  I then have to go back and place at 



      'some code here

except IndexError

In order to get the code to stop where I want.  Does anyone know how I activate that feature where Pycharm stops where the error occurs?

Comment actions Permalink
Official comment

Hi! You are talking about Exception Breakpoints. You cab find them in Run | View Breakpoints | Python Exception Breakpoints.

Comment actions Permalink

That's right Elizabeth. I would just point out exception breakpoints are different to line breakpoints.

I though Elizabeth was referring to line breakpoints and was about to report that's not solving the post, but it actually solves it. This is one of pycharm more powerfull debugging features.


I love pycharm, BTW.


Please sign in to leave a comment.