The*_*eer 7 python debugging telnet
我正在调试嵌入式Linux主板上的python守护进程.我ssh到运行该程序的板上并进入调试器.鉴于这是我使用的是守护进程的过程rdb,从celery
#Install on the system
pip3 install celery
# Set in the code
from celery.contrib import rdb
rdb.set_trace()
# Connect to the debugger
telnet localhost 5899
Run Code Online (Sandbox Code Playgroud)
然而,在该届会议的tab重点不会导致自动完成如通常pdb和up关键不经过历史滚动,但打印^[[A.
这些问题与缺少的readlinepython模块有关,但在这种特殊情况下,模块存在并可以导入.
我不确定问题是什么,可能与 telnet 有关。解决方法是使用另一个似乎有效的远程调试器:
#Install on the system
pip3 install epdb
# Set in the code
import epdb; epdb.serve()
# Connect to the debugger
python3 -c 'import epdb; epdb.connect()'
Run Code Online (Sandbox Code Playgroud)
鉴于这只是一种解决方法,不会接受它作为答案。