Comments (13)
@TomorrowIsBetter ,手机需要设置为spy-debugger的端口
from spy-debugger.
anyproxy 现在是没有这个功能。
不过spy-debugger 可以不使用默认代理anyproxy,换用别的代理进行抓包,如:Charles。
方法:
启动命令
spy-debugger -e http://127.0.0.1:8888
// 8888 为Charles启动端口号
这个模式下请求会先经过spy-debugger,然后转发到Charles
Browser --> spy-debugger --> Charles --> Internet
from spy-debugger.
@wuchangming 目前遇到个问题,启用spy-debugger -e http://127.0.0.1:8888 之后,通过Charles无法抓到HTTPS的请求,不知是否有解法
from spy-debugger.
又试了一下,发现spy-debugger -e http://127.0.0.1:8888 -b false
可以解决这个问题
from spy-debugger.
@zyf394, 因为最早开发spy-debugger的目的是调试浏览器页面。为了方便使用,所以默认只拦截浏览器发出的https请求。
如需拦截所有https请求可以加参数 -b false
from spy-debugger.
@wuchangming 了解了,不过直接敲 spy-debugger
的默认模式下,Charles能够抓到HTTPS。所以一般人会认为spy-debugger -e http://127.0.0.1:8888
也会默认抓取HTTPS,但是实际上通过代理的模式需要手动加 -b false
,所以这里用起来会有点疑惑。
from spy-debugger.
@zyf394 你的spy-debugger 版本是什么版本?
spy-debugger --version
from spy-debugger.
@wuchangming
3.6.1
from spy-debugger.
@zyf394 ,你是调试的浏览器还是原生?我这边看了下如果是浏览器发出的https请求不加参数,https也是可以正常传发到Charles的。
from spy-debugger.
@wuchangming 原生,iOS提供的webview
from spy-debugger.
iOS提供的webview 。如果没改过UserAgent,按道理应该是没问题的。
from spy-debugger.
请教,能够配合charles将请求map到本地吗,为什么这个时候并没有显示整个html以及打出的console
from spy-debugger.
@wuchangming 赞!解决啦
from spy-debugger.
Related Issues (20)
- V3.8.5:已设置代理、安装证书,能访问https地址但targets中没有,http正常,iOS&Android都不行 HOT 3
- iOS14功能失效 HOT 3
- read ECONNRESET错误 HOT 2
- 二维码证书地址过期无法下载 HOT 1
- 启动后遇到error message 然后不能页面调试 HOT 1
- 这个安装证书的二维码打不开,看不到二维码图片
- 可以连接 但无法调试 报错
- ios升级到15.0后又不行了 HOT 2
- 扫码打开怎么是个yellow ???? HOT 2
- 原生的可以调试吗 HOT 3
- 调试时 css样式after属性找不到 HOT 2
- 安装证书的二维码打开有问题 HOT 5
- 证书安装问题问题 HOT 2
- 安装证书提示:无法使用此文件 HOT 2
- 证书有问题?app里面只要跳转H5页面就加载一个黄色网站 HOT 7
- 证书下载问题 HOT 1
- 输入spy-debugger,命令行出现大片无法识别的乱码
- 【bug】README中”任何“2个字具有误导性,需要删除
- Having issues with stalkers looming over my phone
- how to change the proxy ip
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spy-debugger.