Python

Python

By DeepSource

Debugger activation detected PTC-W0014

Bug risk
Autofix

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)