When starting gdb with application message “Debugging Helper Missing” is displayed [Solved] http://qt-project.org/forums/viewthread/23332 文章大意就是QtCreator现在不用Qt调试助手了改用python,而mingw自带的gdb不支持python,所以需要支持python的gdb Building GDB http://qt-project.org/wik
python基础——调试 程序能一次写完并正常运行的概率很小,基本不超过1%.总会有各种各样的bug需要修正.有的bug很简单,看看错误信息就知道,有的bug很复杂,我们需要知道出错时,哪些变量的值是正确的,哪些变量的值是错误的,因此,需要一整套调试程序的手段来修复bug. 第一种方法简单直接粗暴有效,就是用print()把可能有问题的变量打印出来看看: def foo(s): n = int(s) print('>>> n = %d' % n) return 10 / n def ma
python pdb调试以及sublime3快捷键设置 pdb调试 如果对gdb比较熟悉的话,pdb就很容易上手.以一个demo快速了解常用的调试命令. def test(a): while True: if a > 10: break a += 1 return a if __name__ == '__main__': test(1) python -m pdb test.py进入调试环境 b test 在test函数处设置断点,断点号为1 (Pdb) b test Breakpoint 1