推荐学习书目
› 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
simple2025
0D
V2EX  ›  Python

关于 vscode debug 的问题

  •  
  •   simple2025 · Dec 4, 2018 · 2361 views
    This topic created in 2855 days ago, the information mentioned may be changed or developed.
    from selenium import webdriver
    driver = webdriver.Firefox()
    driver.get("http://python.org")
    driver.close()
    

    然后我在

    driver = webdriver.Firefox()
    

    下断点, 使用默认的"Python Current File(Integrated Terminal)" 做调试, 在driver = webdriver.Firefox() 这行使用单步调试,为什么没有进入到Firefox.__init__这个方法里面,是不是我弄的有问题?

    4 replies  •  2018-12-07 00:54:34 +08:00
    hflyf123
        1
    hflyf123  
       Dec 4, 2018   ❤️ 1
    你是单步执行还是单步跳过的呢,后者不会进方法体内部
    simple2025
        2
    simple2025  
    OP
       Dec 4, 2018
    vonsdite
        3
    vonsdite  
       Dec 7, 2018   ❤️ 1
    vscode 适合写小的代码吧,我试了一下,vscode 下按 f11 确实是跳过了, 用 pycharm 就没有这样的问题了。写工程项目还是 pycharm 爽
    simple2025
        4
    simple2025  
    OP
       Dec 7, 2018
    @vonsdite 你也这样呀。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4498 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 09:47 · PVG 17:47 · LAX 02:47 · JFK 05:47
    ♥ Do have faith in what you're doing.