Python 无法在调试模式下调试代码

Python 无法在调试模式下调试代码,python,Python,我一直在频繁使用Python调试模式,但现在我遇到了以下问题: -> plt.subplot(221) (Pdb) can't invoke "event" command: application has been destroyed while executing "event generate $w <<ThemeChanged>>" (procedure "ttk::ThemeChanged" line 6) invoked fro

我一直在频繁使用Python调试模式,但现在我遇到了以下问题:

-> plt.subplot(221)
(Pdb) can't invoke "event" command:  application has been destroyed
    while executing
"event generate $w <<ThemeChanged>>"
    (procedure "ttk::ThemeChanged" line 6)
    invoked from within
"ttk::ThemeChanged"
->plt.子批次(221)
(Pdb)无法调用“事件”命令:应用程序已被销毁
执行时
“事件生成$w”
(程序“ttk::ThemeChanged”第6行)
从内部调用
“ttk::ThemeChanged”
我试图寻找答案,但没有任何解决方法。

检查并检查此项。