如何使用gdb在ubuntu18.04 lts上调试Python?

时间:2019-04-08 07:04:15

标签: python python-2.7 gdb gdb-python

我安装了python2.7-dbg,但是当我使用它时,我发现了一些错误:

(gdb) py-list 
Python Exception <class 'gdb.error'> No frame is currently selected.: 
Error occurred in Python command: No frame is currently selected.

我该如何解决这个问题? 我通过列表步骤使用它:

➜  test ps ux | grep test.py
liangpi+ 31798 99.1  0.0  32640  6340 pts/11   RN   14:20  33:41 python test.py

1.gdb python 31798

2。((gdb)py-list

0 个答案:

没有答案