Mar*_*ert 5 debugging django-forms pycharm
我在派生表单类中覆盖了clean():
def clean(self):
self.user = None
cleaned_data = super(LoginForm, self).clean()
username = cleaned_data["user_id"].lower()
Run Code Online (Sandbox Code Playgroud)
但是调试器并没有在我在重写方法中设置的断点上停止(例如,它不会在self.user = None上的中断设置上停止).
我可以看到正在调用该方法,因为会引发并记录自定义ValidationError.
PyCharm调试器是否存在限制,它在重写方法中不会遇到断点?
| 归档时间: |
|
| 查看次数: |
173 次 |
| 最近记录: |