是否可以使用Ipython magic %debug
来调试不是前一行的行
问题是:我有一个习惯,用手指粗敲输入
In [1]: %run myscript.py
ValueError: blah blah blah. # <---- the error I care about
In [2]: $debug # or %devug or some other stupid mistake
SyntaxError: invalid syntax
In [3]: %debug # <--- now this wants to debug my stupid typo
有没有办法指定调试中的前一行?比如:
%debug In[1]
目前没有回答
相关问题 更多 >
编程相关推荐