matlab - Working interactively in Python -
is there way switch 'interactive' mode within python script, similar "keyboard" function in matlab? aware of ipython, don't think allow me 'pause' @ point in script, e.g., within for-loop, switch interactive mode based on if-statement.
in matlab like:
for = 1:100 % stuff if == 55 keyboard end % more stuff end
i think want debugger.
import pdb; pdb.set_trace()
this dump debug session can inspect , edit variables, , call functions.
Comments
Post a Comment