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

各位在远程主机那里都是怎样去 debug 代码的

  •  1
     
  •   ray1888 ·
    ray1888 · Nov 1, 2017 · 4162 views
    This topic created in 3301 days ago, the information mentioned may be changed or developed.

    刚刚在服务器上调试自己的代码,所以提起了这个话题,个人一般习惯是打 log 来 debug

    9 replies  •  2017-11-02 12:49:12 +08:00
    wwqgtxx
    wwqgtxx
    Nov 1, 2017
    1
    pycharm 可以直接 remote debug
    laoyur
    laoyur
    Nov 1, 2017
    2
    ssh tunnel 到 remote mysql
    然后本地 PyCharm 直接走调试?
    ray1888
    ray1888
    OP
    Nov 1, 2017
    3
    @wwqgtxx pycharm 理论上应该跳不过堡垒机?应该只能直连服务器?
    q397064399
    q397064399
    Nov 1, 2017
    4
    @ray1888 #3 端口转发到本地就好了
    gwind
    gwind
    Nov 1, 2017
    5
    屏幕翻动太快吗? tmux ?
    wwqgtxx
    wwqgtxx
    Nov 1, 2017
    6
    @ray1888 4#正解,端口转发一下就好了
    ray1888
    ray1888
    OP
    Nov 2, 2017
    7
    @gwind 用 log 比较清晰,因为还可以定义行数,之后可能会尝试一下 pycharm 的 remote debug 工具
    jeremaihloo
    jeremaihloo
    Nov 2, 2017
    8
    楼上正解,端口转发一下就好
    MasterMonkey
    MasterMonkey
    Nov 2, 2017
    9
    远程调试,搭配 sourcemaps
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2045 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 13:28 · PVG 21:28 · LAX 05:28 · JFK 08:28
    ♥ Do have faith in what you're doing.