我想在aws emr环境中使用zeppelin调试python函数。因此,我尝试通过添加语句“from ipython.core.debugger import pdb;pdb()。在函数的开头设置了\“trace()”,但出现了以下错误。
Traceback (most recent call last):
File "/tmp/16458272539028-0/zeppelin_python.py", line 158, in <module>
exec(code, _zcUserQueryNameSpace)
File "<stdin>", line 1, in <module>
File "<stdin>", line 5, in my_function
File "<stdin>", line 5, in my_function
File "/usr/lib64/python3.7/bdb.py", line 88, in trace_dispatch
return self.dispatch_line(frame)
File "/usr/lib64/python3.7/bdb.py", line 113, in dispatch_line
if self.quitting: raise BdbQuit
bdb.BdbQuit
如果您写“import pdb;就在执行函数之前。
%pyspark写在单元格的开头。我用Python。如何使用齐柏林飞艇调试python?
暂无答案!
目前还没有任何答案,快来回答吧!