spy-debugger icon indicating copy to clipboard operation
spy-debugger copied to clipboard

开启spy-debugger后页面打不开

Open bing1021 opened this issue 7 years ago • 10 comments

开启spy-debugger后,打开命令行提示的地址,一直显示加载中。 命令行报mime.lookup is not a function

bing1021 avatar Sep 26 '17 09:09 bing1021

@bing1021 ,是用cnpm安装的?如果是可以先删掉spy-debugger再用npm重装下试试 参考这个看看:https://github.com/wuchangming/spy-debugger/issues/55#issuecomment-330146335

wuchangming avatar Sep 26 '17 09:09 wuchangming

用的cnpm,我在试试

bing1021 avatar Sep 27 '17 01:09 bing1021

解决了,用npm安装就可以了

bing1021 avatar Sep 27 '17 02:09 bing1021

@bing1021 ,手机是否有安装证书?什么手机型号,浏览器类型是?

wuchangming avatar Sep 27 '17 02:09 wuchangming

手机都安装了证书,浏览器 60.0.3112.113。iphone6可以用的,4s不行 @wuchangming

bing1021 avatar Sep 27 '17 03:09 bing1021

@bing1021 ,可以看看抓包的页面是否有记录到请求, 手机上是否开启了翻墙软件之类的?需要先关闭。

wuchangming avatar Sep 27 '17 08:09 wuchangming

spy-debugger\[email protected]@connect\lib\middleware\static.js 中require"mime" 由于connect依赖没有限定版本号,所以cnmp下载的是mime2.0,但mime2.0变api了。 spy-debugger\[email protected]@connect\node_modules\mime\README.md(如果是mine2.0版本)中提到

  • lookup() renamed to getType()
  • charset() and load() methods have been removed 所以将static.js里的lookup()改成getType(),将变量charset = 'utf8'直接附成字符串。这样就不会有mime的报错了。 用cnpm安装Weinre的话也有这个问题。稍微改一下就ok。

edgeder avatar Oct 13 '17 07:10 edgeder

cnpm 安装报错问题已在V3.6.8版本修复

wuchangming avatar Dec 24 '17 05:12 wuchangming

iphone 6s plus调试只能抓包,看不到页面,targets 为none

KZC275 avatar Mar 22 '18 10:03 KZC275

iphone 5s 调试只能抓包,看不到页面,targets为none 另外百度页面打不开

1808133855 avatar Apr 23 '18 02:04 1808133855