推荐学习书目
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 · 3871 views
    This topic created in 3145 days ago, the information mentioned may be changed or developed.

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

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