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()
4
  • Did you configured your debug settings before actually running debug on PyCharm?
    – Samuel
    Commented May 26, 2016 at 9:10
  • @Samuel I'm not sure what is the "debug settings" in Pycharm. Would you please post me a link?
    – spacegoing
    Commented May 26, 2016 at 9:23
  • Please check that link - jetbrains.com/help/pycharm/2016.1/…
    – Samuel
    Commented May 26, 2016 at 9:26
  • 1
    @spacegoing, try to press Ctrl + Shift + F8 and check the "Python Exception Breakpoint" checkbox.
    – iulian
    Commented May 26, 2016 at 11:05

0

Browse other questions tagged or ask your own question.