How can I start the python console within a program (for easy debugging)?

前端 未结 6 1637
说谎
说谎 2021-02-10 03:52

After years of research programming in Matlab, I miss the way I could pause a program mid-execution and inspect the variables, do plotting, save/modify data, etc. via the intera

6条回答
  •  悲&欢浪女
    2021-02-10 04:39

    pdb is what you're looking for - just put a call to pdb.set_trace() wherever you want to drop into an debugger.

提交回复
热议问题