Debugging robot framework python keyword libraries

前端 未结 3 1693
佛祖请我去吃肉
佛祖请我去吃肉 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:16

    You can debug directly in robot files, without creating a keyword:

    Evaluate    pdb.Pdb(stdout=sys.__stdout__).set_trace()    modules=sys, pdb
    

    https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#using-the-python-debugger-pdb

提交回复
热议问题