I'm trying to debug a plugin code that I'm running inside exec command
is there a way to debug it somehow? for example:
code='''
breakpoint()
foo=5
print(foo)
'''
exec(code)
I want to stop before foo is printed,
and do list (pdb) command and see the code
After
ipdb.set_trace()ipdb will start. You can go to the next break usingcor to next line withn. check the following cheetsheet: cheetsheetNote: it's easier to place your code inside a """ """.