PonyDebugger的安装使用

项目网站: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)


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值