在 Spyder iPython 解释器中抑制 ipdb 输出
Suppressing ipdb output in Spyder iPython interpreter
我有理由相信我的 iPython 解释器导致我的内核死机并重新启动,类似于 this link and that link.
中记录的问题
后面的link表示错误是由于调试器将一步一步的ipdb
内容输出到解释器中造成的。一位用户报告说,当他(我引用)
时,该行为停止了
disabled logging to console before running in debug mode
Spyder IDE/IPython 中的一个 "disable logging to console" 怎么样?我真的需要这样做,这样我至少可以单步执行我的代码....
编辑
我想抑制这种输出
ipdb> > d:\temp\other const models\plaxis\output\plotparfile.py(16)PlotParFile()
14 with open(filename,'r') as fid:
15 lines = fid.readlines()
---> 16 fid.close()
17 #split first line get header and pop it out
18 header = lines[0].split()
> d:\temp\other const models\plaxis\output\plotparfile.py(18)PlotParFile()
16 fid.close()
17 #split first line get header and pop it out
---> 18 header = lines[0].split()
19 lines.pop(0)
20
(Spyder developer here) 该输出是自动生成的,其目的是告诉您在调试时将代码放置在何处。
目前 Spyder 中没有停用它的选项。此外,我真的怀疑输出可能是任何内核故障的原因。
我有理由相信我的 iPython 解释器导致我的内核死机并重新启动,类似于 this link and that link.
中记录的问题后面的link表示错误是由于调试器将一步一步的ipdb
内容输出到解释器中造成的。一位用户报告说,当他(我引用)
disabled logging to console before running in debug mode
Spyder IDE/IPython 中的一个 "disable logging to console" 怎么样?我真的需要这样做,这样我至少可以单步执行我的代码....
编辑
我想抑制这种输出
ipdb> > d:\temp\other const models\plaxis\output\plotparfile.py(16)PlotParFile()
14 with open(filename,'r') as fid:
15 lines = fid.readlines()
---> 16 fid.close()
17 #split first line get header and pop it out
18 header = lines[0].split()
> d:\temp\other const models\plaxis\output\plotparfile.py(18)PlotParFile()
16 fid.close()
17 #split first line get header and pop it out
---> 18 header = lines[0].split()
19 lines.pop(0)
20
(Spyder developer here) 该输出是自动生成的,其目的是告诉您在调试时将代码放置在何处。
目前 Spyder 中没有停用它的选项。此外,我真的怀疑输出可能是任何内核故障的原因。