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 looked at debug lib , which seems to provide me with the ability to set a breakpoint and spawn a new shell. However I want to examine the execution flow, the stack and the variable values set. Something like pudb but triggered via pybot. Is this possible?
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()