How to use gdb python debugging extension inside virtualenv

前端 未结 4 783
栀梦
栀梦 2020-12-25 07:57

I\'m running ubuntu, and installed the python-dbg package. When trying to use the installed version directly everything works great:

$ gdb python2.7-dbg
GNU          


        
4条回答
  •  抹茶落季
    2020-12-25 08:39

    In Debian 11 with Python 3.7, gdb debugging works out of the box inside virtualenv.

    Make sure that you created the venv with the same Python3 version than the python3-dbg package version installed.

    In case symbols don't load correctly, rebuild the venv from scratch and try again.

提交回复
热议问题