V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
xinmans
V2EX  ›  Python

- [ ] 是否有比较好的分析 Python 代码调用链的工具

  •  
  •   xinmans · 141 天前 via iPhone · 812 次点击
    这是一个创建于 141 天前的主题,其中的信息可能已经有所发展或是发生改变。
    比如我有一个 src 目录下有一堆的的 python 程序,有入口 main.py ,还有其他被调用的函数,希望能够一键给出调用链的分析(函数入口一直到最后的调用),最好是 xmind 那种展开的图,方便阅读代码和查问题。
    5 条回复    2023-12-08 11:28:30 +08:00
    ClericPy
        1
    ClericPy  
       141 天前
    你说的不会是 Pycharm 的函数地图吧...

    话说 VSCODE 有没有函数地图啊
    sordidclown
        2
    sordidclown  
       141 天前
    PyCharm 的 Profile 调用一次?最后会有一个调用图,还能跳转到对应的方法
    xinmans
        3
    xinmans  
    OP
       141 天前 via iPhone
    vscode 里有对应的插件吗? 我平时主要用 vscode ,pycharm 这个功能我试一下
    warcraft1236
        4
    warcraft1236  
       141 天前
    @ClericPy pycharm 的函数地图在哪?
    clemente
        5
    clemente  
       141 天前
    python -m trace
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2871 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 06:58 · PVG 14:58 · LAX 23:58 · JFK 02:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.