Can I use pdb.set_trace() in an imported function

2 views
Skip to first unread message

gladys0313

unread,
Apr 4, 2016, 3:56:19 PM4/4/16
to python-il
Hi all, I am running a python script. In this script, I import a function from another module and this function is called in the script I am running. Now to check the imported function in detail, I want to set breakpoint in the function. To do so, I find the imported module script, and I put pdb.set_trace() in the function, but it doesn't work. I want to ask whether pdb.set_trace() can be used in an imported function. If it can be used in this way, then I think it means that the module I insert pdb is not the one imported, and I need to find the right place.
Reply all
Reply to author
Forward
0 new messages