Hi,
Is there a way to start the debugging mode at the point when error occurs?
I do not like using the conditioned "Breakpoint", I want the debugger add automatic Breakpoint at the location of error, and exactly one the error happens.
Thank you,
Python doesn't know that an error has occurred. It only knows that an exception is being raised, but this does not necessarily indicate an error.
which (if any) IDE are you using?
(Feb-15-2018, 11:06 AM)Larz60+ Wrote: [ -> ]which (if any) IDE are you using?
I'm using PyCharm
The PyCharm debugger will stop on the line you wish by clicking in the left border.
It works really well.
There is of course no reliable way that it can create an 'automatic Breakpoint'. I guess one could theorize a scenario where a breakpoint could be placed on the instruction prior to the program crash, but in reality this can't be done, Take for instance when the crash occurs in a thread, in addition, the call stack is often destroyed as soon as the crash occurs. Even is it could be accessed, there is no way to insure it's integrity.