lc-cnblong

一般在需要调试的文件加入下面代码即可

################

_DEBUG = True

...

if _DEBUG == True

  import pdb

  pdb.set_trace()

################

之后执行文件,就会进入调试状态,常用调试命令和gdb下基本一样,相当好用

如 c (continue) ,n(next),p(print),s(step into) ,bt(打印堆栈)

分类:

技术点:

相关文章:

  • 2021-11-17
  • 2021-11-17
  • 2021-11-17
  • 2021-11-17
  • 2021-06-15
  • 2021-09-06
  • 2022-03-04
猜你喜欢
  • 2022-12-23
  • 2021-11-27
  • 2021-12-20
  • 2021-11-17
  • 2021-11-23
  • 2021-11-17
相关资源
相似解决方案