当我用一些pydev模块运行整个文件夹时,我在Eclipse中得到一个调试错误:
0.06s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
如何克服这一点?
正如消息所说,这是一个警告。
您可以通过设置一个环境变量来静音它:
PYDEVD_DISABLE_FILE_VALIDATION=1
—您可以在您的首选项中的Environment
选项卡中设置PyDev > Interpreters > Python Interpreter
或者您可以在启动配置中传递-Xfrozen_modules=off
,以便您可以调试冻结的模块。