PyCharm: Debugging Django Forms clean () override

I redid clean () into a class of derived forms:

def clean(self): self.user = None cleaned_data = super(LoginForm, self).clean() username = cleaned_data["user_id"].lower() 

But the debugger does not stop at the breakpoints that I set in the overridden method (for example, it does not stop at a break on self.user = None).

I see that the method is being called because the custom ValidationError is getting raised and recorded.

Is there a restriction on the PyCharm debugger where it will not hit breakpoints in overridden methods?

+5
source share

Source: https://habr.com/ru/post/1209663/


All Articles