V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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
ufo22940268
V2EX  ›  Python

关于pdb的问题

  •  
  •   ufo22940268 ·
    ufo22940268 · Jun 19, 2012 · 3318 views
    This topic created in 5072 days ago, the information mentioned may be changed or developed.
    大神们, 最近在用python写一些代码。不过在调试的时候希望重定向标准输入,可是失败了。
    比如,我以前用gdb的时候,只要`gdb a.out < test`就可以吧`test`文件中的内容作为标准输入了。可是我发现在pdb中这招不管用,求解决方案。

    ps:python太好玩了,如果能解决这个问题的话。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3022 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 07:33 · PVG 15:33 · LAX 00:33 · JFK 03:33
    ♥ Do have faith in what you're doing.