我有一个使用virtualenv运行的多线程python应用程序,我无法使用gdb正确地附加到它。我已经安装了python2.7-dbg,然后尝试使用gdb /home/PATHTOVENV/venv/bin/python 30183运行调试。Find the GDB manual and other documentation resources online at:
<http://www.gnu.org
我使用Python通过批处理命令控制GDB。下面是我给GDB打电话的方式:cmd.gdb清单只包含调用Python的行cmd.py脚本尝试创建一个断点和附加命令列表。bp = gdb.Breakpoint("myFunc()") # break at function in myprogram
<em