2

I'm new to pycharm. How can i configure pycharm to enter debugger when any error raised?

I was using Ipython before. In Ipython Console if error raised you simply type %debug and will enter ipdb.

However in pycharm Ipython Console, after I entered %debug it displays this message: ERROR: No traceback has been produced, nothing to debug.

I've followed this Official Doc and this question but none of them work.

By the way, what's the function of debug icon on pycharm console? Nothing happens even I activated it.

Sample code:

def debugg():
    a = 1
    a[3]
debugg()
Community
  • 1
  • 1
spacegoing
  • 5,056
  • 5
  • 25
  • 42
  • Did you configured your debug settings before actually running debug on PyCharm? – Samuel May 26 '16 at 09:10
  • @Samuel I'm not sure what is the "debug settings" in Pycharm. Would you please post me a link? – spacegoing May 26 '16 at 09:23
  • Please check that link - https://www.jetbrains.com/help/pycharm/2016.1/creating-and-editing-run-debug-configurations.html – Samuel May 26 '16 at 09:26
  • @spacegoing, try to press `Ctrl + Shift + F8` and check the "Python Exception Breakpoint" checkbox. – iulian May 26 '16 at 11:05

0 Answers0