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

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -