Breaking at a member function in the Python debugger

前端 未结 1 854
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-02 17:37

This should be a trivial question, but my search so far has been fruitless:

I\'m using the Python debugger (pdb) for the first time, and was quite pleased to find mo

1条回答
  •  别那么骄傲
    2021-01-02 18:03

    You need to import names before you can refer to them in the debugger.

    (Pdb) from jam2dot import JamParser
    (Pdb) b JamParser.parse
    

    0 讨论(0)
提交回复
热议问题