Debugging robot framework python keyword libraries

前端 未结 3 1696
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-01 09:28

For learning purposes I want to follow the execution path in a robot framework python library. Actually the ssh library

What is the best way to do this?

I have

3条回答
  •  后悔当初
    2021-02-01 10:07

    You can use pdb with robot. How to do so is documented in the robot framework user guide, in the section titled Using the python debugger (pdb).

    The example it gives is to add this where you want to set a breakpoint:

    import sys, pdb; pdb.Pdb(stdout=sys.__stdout__).set_trace()
    

提交回复
热议问题