推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
tonghuashuai
V2EX  ›  Python

Vim 下调试的问题

  •  
  •   tonghuashuai ·
    tonghs · Nov 30, 2013 · 4706 views
    This topic created in 4686 days ago, the information mentioned may be changed or developed.
    最近在折腾 Vim 下调试,用了 vim-debug,怎么弄都不行啊,:Dbg break 以后出现

    failed to start a browser. aborting debug session

    然后再弄就是报错了:
    Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/usr/local/lib/python2.7/dist-packages/vim_debug-1.5.4-py2.7.egg/vim_deb
    ug/commands.py", line 44, in debugger_cmd
    cmd['function'](*args)
    File "/usr/local/lib/python2.7/dist-packages/vim_debug-1.5.4-py2.7.egg/vim_deb
    ug/new_debugger.py", line 207, in break_
    tid = self.bend.cid + 1
    AttributeError: Debugger instance has no attribute 'bend'

    pydbgp 没有问题,为啥这货要打开 browser 呢,我是 ssh 到 vps 上的。


    各位现在用啥调试啊?我说的是单步调试,别告诉我你们用 print……
    6 replies  •  1970-01-01 08:00:00 +08:00
    likaci
        1
    likaci  
       Nov 30, 2013
    现在处理纯文本用 vim, 写东西还是用 ide + vim 插件.
    sandtears
        2
    sandtears  
       Nov 30, 2013
    .... 我觉得Print调试挺好的啊
    duhastmich
        3
    duhastmich  
       Nov 30, 2013
    https://zapier.com/engineering/debugging-python-boss/
    脚本语言print 为什么不行呢
    usoluyun
        4
    usoluyun  
       Nov 30, 2013
    尝试用过vimpdb,超级难用,要先在后台起一个vim的实例,然后才能在另一个vim里面调用。真没直接用pdb方便。
    gkiwi
        5
    gkiwi  
       Dec 4, 2013
    用下这个pudb 试试 https://github.com/inducer/pudb
    tonghuashuai
        6
    tonghuashuai  
    OP
       Dec 4, 2013
    @gkiwi
    哦,多谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5447 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 02:57 · PVG 10:57 · LAX 19:57 · JFK 22:57
    ♥ Do have faith in what you're doing.