Debugger is active with pdb.set_trace
59
60
61def main(options: dict = {}) -> str:
62 pdb.set_trace() 63 if "run" in options:
64 value = options["run"]
65 else:
Description
Debuggers should only be used temporarily and locally. It is highly recommended not to leave debug statements in checked-in code. This may cause your application to have unintended side-effects.
Bad practice
def some_function(values):
breakpoint() # Will cause the code to stop and go into debug mode.
print(values)
Recommended
Remove the debugger statement:
def some_function(values):
print(values)