vim python 调试

来源:互联网 发布:国内算法班 编辑:程序博客网 时间:2024/05/18 14:13

Use pdb:

import pdbdef main():  list = [1,2,3]  pdb.set_trace()  list = [2,3,4]if __name__ == '__main__':    main()

Now run using :!python % and you'll hit your breakpoint and be able to debug interactively like ingdb.

0 0