一、Charles-断点功能(原文地址:https://www.jianshu.com/p/7479866a1d8e)
1、添加Charles断点
1.1 用Charles抓包发起一次接口请求
1.2 对要打断点的接口右键,选择【Breakpoints】

2、Charles断点设置
2.1 点击Charles菜单-【Proxy】-【Breakpoint...】,此时会弹出【Breakpoints Settings】对话框

2.2 双击【Location】内的接口地址,此时会弹出【Edit Breakpoint】对话框
2.3 在【Query】项输入:*
2.4 如果我需要修改返回的参数,就只勾选【Response】

3、修改接口返回值
3.1 再次发起接口请求,此时会弹出下面的对话框
3.2 点击【Edit Response】,修改返回的报文

网友评论