Is there a way to trigger the debugger to break, in code? Permanently deleted user Created April 21, 2012 18:07 Is there a way to explicitly cause the debugger to break, in code? For instance:if x is None: Debugger.break() # or something like thatThanks
No. When you run PyCharm using "Run" and not "Debug", the debugger runtime is not attached at all. When you run PyCharm with "Debug", you can simply put a dummy statement at that place and put a breakpoint on it.