当前位置: 首页 > 工具软件 > PonyDebugger > 使用案例 >

PonyDebugger的安装使用

饶志
2023-12-01

项目网站:https://github.com/square/PonyDebugger

作用:

    debug your application's network traffic and managed object contexts.

使用前:

1.需要 Xcode's Command Line Tools

    在终端 输入xcrun检查是否安装

  1. stsdeMacBook-Pro:~ sts$ xcrun

  2. Usage: xcrun [options] <tool name> ... arguments ...

  3. Find and execute the named command line tool from the active developer

  4. directory.

  5. The active developer directory can be set using `xcode-select`, or via the

  6. DEVELOPER_DIR environment variable. See the xcrun and xcode-select manual

  7. pages for more information.

  8. Options:

  9.  -h, --help                  show this help message and exit

  10.  --version                   show the xcrun version

  11.  -v, --verbose               show verbose logging output

  12.  --sdk <sdk name>            find the tool for the given SDK name

  13.  --toolchain <name>          find the tool for the given toolchain

  14.  -l, --log                   show commands to be executed (with --run)

  15.  -f, --find                  only find and print the tool path

  16.  -r, --run                   find and execute the tool (the default behavior)

  17.  -n, --no-cache              do not use the lookup cache

  18.  -k, --kill-cache            invalidate all existing cache entries

  19.  --show-sdk-path             show selected SDK install path

  20.  --show-sdk-version          show selected SDK version

  21.  --show-sdk-platform-path    show selected SDK platform path

  22.  --show-sdk-platform-version show selected SDK platform version


2.安装ponyd

    官方原文是:

  1. curl -sk https://cloud.github.com/downloads/square/PonyDebugger/bootstrap-ponyd.py |

  2.  python - --ponyd-symlink=/usr/local/bin/ponyd ~/Library/PonyDebugger

    但是并不能用……

    

    解决参考:http://blog.3snews.net/space.php?uid=6188&do=blog&id=69867

    在终端输入1 2 3:

    

  1. 1 首先下载安装脚本

  2. curl -O https://cloud.github.com/downloads/square/PonyDebugger/bootstrap-ponyd.py

  3. 2 安装

  4. python bootstrap-ponyd.py --ponyd-symlink=/usr/local/bin/ponyd ~/Library/PonyDebugger

  5. 3 修复更新,依次执行下面的脚本

  6. source ~/Library/PonyDebugger/bin/activate

  7. pip install -U -e git+https://github.com/square/PonyDebugger.git#egg=ponydebugger --allow-external pybonjour --allow-unverified pybonjour

  8. ponyd update-devtools

(并不会出现参考网站出现的4那个信息)


    等安装结束,然后输入

ponyd serve --listen-interface=127.0.0.1

    再在浏览器输入 localhost:9000  验证一下就行了。  


( 安装后ponyd在 /Users/sts/Library/PonyDebugger/bin 下)。


3 使用:(留坑 2015年04月16日10:55:47)


 类似资料: