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

Python ,或者说 pycharm 有没有什么方便的方法查看函数的调用路径

  •  
  •   shyrock · Jan 26, 2021 · 2473 views
    This topic created in 2079 days ago, the information mentioned may be changed or developed.
    不是说动态运行栈,而是静态代码分析的时候,能否看到函数 a 被 b 和 c 调用,b 和 c 又分别被 d 和 e 调用,最后 d 和 e 都被 main 调用。
    目前我都是在 pycharm 中用全局搜索一层一层来找,感觉效率很低,按说这个需求很常见吧?是不是有更高效的方法?
    3 replies  •  2021-01-27 20:29:40 +08:00
    ThisQ
        1
    ThisQ  
       Jan 26, 2021
    window 下 用 win+B mac 就是 command+b 该公司的产品快捷键都一样的。
    shyrock
        2
    shyrock  
    OP
       Jan 27, 2021
    @ThisQ #1 我说的不够清楚,我想要的不是一个函数被哪些函数调用的列表,而是一层一层向上找到所有调用路径的树
    ilucio
        3
    ilucio  
       Jan 27, 2021 via Android
    试下 sourcetrail
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2457 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 07:13 · PVG 15:13 · LAX 00:13 · JFK 03:13
    ♥ Do have faith in what you're doing.