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

怎么 pycharm 里调试 jython 程序

  •  
  •   wanxi3 · Apr 1, 2017 · 3239 views
    This topic created in 3464 days ago, the information mentioned may be changed or developed.
    由于使用 ngrinder ,写脚本用的 jython 。用过 ngrinder 的都知道,在 web 上调试真的恶心。
    5 replies  •  2017-04-01 17:23:49 +08:00
    kaneg
        1
    kaneg  
       Apr 1, 2017 via iPhone
    跟 python 一样的呀,你碰到什么问题?
    wanxi3
        2
    wanxi3  
    OP
       Apr 1, 2017
    @kaneg 脚本里需要引入 from net.grinder.script.Grinder import grinder,这个应该是 java 的包吧
    kaneg
        3
    kaneg  
       Apr 1, 2017 via iPhone
    @wanxi3 把包含该类的 jar 放在 jython 的 classpath 里,然后就跟 python 一样 debug
    wanxi3
        4
    wanxi3  
    OP
       Apr 1, 2017
    @kaneg 弱弱的问一下,把 jar 包放到 /usr/local/Cellar/jython/2.7.0/libexec/javalib 这个目录下可以吗
    kaneg
        5
    kaneg  
       Apr 1, 2017 via iPhone
    @wanxi3 看这个目录名应该可以的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1012 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 23:28 · PVG 07:28 · LAX 16:28 · JFK 19:28
    ♥ Do have faith in what you're doing.