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

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -