Comments (35)
确认下是不是缓存问题?清除下webview缓存试试
是否按照下列步骤启动了?
第一步:手机和PC保持在同一网络下(比如同时连到一个Wi-Fi下)
第二步:命令行输入spy-debugger,按命令行提示用浏览器打开相应地址。
第三步:设置手机的HTTP代理,代理IP地址设置为PC的IP地址,端口为spy-debugger的启动端口(默认端口:9888)。
第四步:安装证书。注:手机必须先设置完代理后再通过(非微信)手机浏览器访问http://spydebugger.com/cert 安装证书(手机首次调试需要安装证书,已安装了证书的手机无需重复安装)。
第五步:用手机浏览器访问你要调试的页面即可。
from spy-debugger.
@wuchangming
步骤是一样, app的http请求还是可以抓取.然而app打开的webview 是不行,
手机自带浏览器是可以
from spy-debugger.
启动方式换成 下面这个试试
spy-debugger -b false
from spy-debugger.
@wuchangming
weinre 下的targets 要刷新,才在 http://127.0.0.1:55035/ 出现,当webview进行跳链后,会提示Connection lost, reload this page to reconnect.
https那个问题倒是好了
from spy-debugger.
anyproxy不太稳定,可能是anyproxy崩溃了
命令行有没报错信息?
from spy-debugger.
找了台有谷歌服务的手机试了一下
www.google.com
{ [Error: socket hang up] code: 'ECONNRESET' }
Cannot read property 'displayName' of undefined
C:\Users***\AppData\Roaming\nvm\v4.4.4\node_modules\spy-debugger\node_modules\anyproxy\proxy.js:208
logUtil.printLog('Caught exception: ' + (err.stack || err), logUtil.T_ERR);
^
TypeError: Cannot read property 'displayName' of undefined
from spy-debugger.
嗯,anyproxy经常会导致整个调试工具崩溃。我找时间优化下。
你也可以把spydebbger结合其他更稳定的代理使用如Charles、Fiddler:
https://github.com/wuchangming/spy-debugger#设置外部代理默认使用anyproxy
from spy-debugger.
spy-debugger -b false -e http://127.0.0.1:8888
这样会生效不? 这样weinre 好像也是有点问题
from spy-debugger.
什么问题呢?这样就只会启动weinre,不启动anyproxy,然后所有spydebugger的请求都转发到8888端口去
from spy-debugger.
weinre 就复现了抓不了targets
from spy-debugger.
@wuchangming 我按照你上面说的步骤走完了,证书也装好了。现在手机访问页面,没有任何监控呃。注:手机与PC在同一局域网内,且代理到了pc的IP地址,fiddler代理的本地IP。页面是https的。使用命令:spy-debugger -b false启动
from spy-debugger.
fiddler代理的本地IP ?? 什么意思?
@jiangxueyang ,页面抓包的tab下有信息没?
from spy-debugger.
@wuchangming 页面抓包的tab没有任何信息呃。fiddler是用来代理访问链接的,现在代理的是本地环境。而且用了你的软件后,我的PC页面访问页面也不会有监控到。之前用weinre,PC访问页面是可以监控的。
from spy-debugger.
@jiangxueyang ,spy-debugger默认确实不会走你本地的fiddler。你可以用设置外部代理的模式
spy-debugger -e http://127.0.0.1:(fiddler 启动端口)
from spy-debugger.
目前版本配合 Charles 使用,按照上述步骤, 是可以获取 targets
from spy-debugger.
为什么只能看到网络请求, 没有target
from spy-debugger.
我的电脑 mac 10.13.6 node 版本 v10.14.2
安装了 spy-debugger , 且手机电脑都安装了证书
https调试
webview内AnyProxy 能看到 https,但是 weinre 无targets
from spy-debugger.
在同事的电脑试了 是可以调试https, 我这反复琢磨研究,始终找不到原因,为什不能https调试
from spy-debugger.
@guojingwen ,什么手机?安装完证书是否手动信任?参考:#42
from spy-debugger.
华为 mate9 系统 9.0.1.179
from spy-debugger.
我用同事的苹果手机 一样 weinre 无targets, 我觉得跟手机想好无关
我同事spy-debugger版本号 3.7.2,我也更新为 3.7.2 也不行
我只能说第一次接触并安装时 是可以使用的,包括https , 一段时间不用又不能用了,,,
from spy-debugger.
from spy-debugger.
@wuchangming 在看这个问题吗?
from spy-debugger.
是某个URL不行?还是所有页面都不行?比如百度呢?
from spy-debugger.
都不行
from spy-debugger.
@wuchangming 有没有空周末帮我看看,我两天任意时间都有空,
通过 TeamViewer 操控我的电脑, 我通过 Vysor 把手机屏幕投射到电脑,你同样可以操作我的手机
from spy-debugger.
@guojingwen ,不一定有空,不过你可以留个联系方式。可以发我邮箱 [email protected]
from spy-debugger.
好的 @wuchangming , 给你发邮件了
from spy-debugger.
使用spy调试,
我的手机android 9 同事的手机 ios12.3 ,我的电脑同事的电脑都是mac 且spy版本一致3.8.3
用我的电脑调试两个手机http均可以,https都不行
用同事的电脑调试两个手机 我的手机android9 https不行
from spy-debugger.
@guojingwen ,可能还是证书的问题。
每台电脑安装spy-debugger的时候,会在该电脑上生成一个唯一的证书。证书是跟着电脑的。
如:
用我的电脑调试两个手机http均可以,https都不行
(原因:这两台手机都没有信任你电脑上的证书)
用同事的电脑调试两个手机 我的手机android9 https不行
(原因:你的手机没有信任你同事电脑上的证书)
from spy-debugger.
下载哪一个
from spy-debugger.
from spy-debugger.
from spy-debugger.
这个选择哪一个
from spy-debugger.
第一个
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.