Getting pdb in Emacs to use Python process from current virtualenv

前端 未结 4 1144
梦谈多话
梦谈多话 2020-12-28 15:53

I am debugging some python code in emacs using pdb and getting some import issues. The dependencies are installed in one of my bespoked virtualenv environments.

Pdb

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-28 16:26

    A quick work-around is to explicitly call the python interpreter in you virtual env.

    M-x pdb, then:

    path/to/your/virtualenv/python3 -m pdb your_source.py
    

提交回复
热议问题