GithubHelp home page GithubHelp logo

Comments (13)

wuchangming avatar wuchangming commented on May 22, 2024 1

@TomorrowIsBetter ,手机需要设置为spy-debugger的端口

from spy-debugger.

wuchangming avatar wuchangming commented on May 22, 2024

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.

zyf394 avatar zyf394 commented on May 22, 2024

@wuchangming 目前遇到个问题,启用spy-debugger -e http://127.0.0.1:8888 之后,通过Charles无法抓到HTTPS的请求,不知是否有解法

from spy-debugger.

zyf394 avatar zyf394 commented on May 22, 2024

又试了一下,发现spy-debugger -e http://127.0.0.1:8888 -b false 可以解决这个问题

from spy-debugger.

wuchangming avatar wuchangming commented on May 22, 2024

@zyf394, 因为最早开发spy-debugger的目的是调试浏览器页面。为了方便使用,所以默认只拦截浏览器发出的https请求。
如需拦截所有https请求可以加参数 -b false

from spy-debugger.

zyf394 avatar zyf394 commented on May 22, 2024

@wuchangming 了解了,不过直接敲 spy-debugger 的默认模式下,Charles能够抓到HTTPS。所以一般人会认为spy-debugger -e http://127.0.0.1:8888也会默认抓取HTTPS,但是实际上通过代理的模式需要手动加 -b false,所以这里用起来会有点疑惑。

from spy-debugger.

wuchangming avatar wuchangming commented on May 22, 2024

@zyf394 你的spy-debugger 版本是什么版本?
spy-debugger --version

from spy-debugger.

zyf394 avatar zyf394 commented on May 22, 2024

@wuchangming
3.6.1

from spy-debugger.

wuchangming avatar wuchangming commented on May 22, 2024

@zyf394 ,你是调试的浏览器还是原生?我这边看了下如果是浏览器发出的https请求不加参数,https也是可以正常传发到Charles的。

from spy-debugger.

zyf394 avatar zyf394 commented on May 22, 2024

@wuchangming 原生,iOS提供的webview

from spy-debugger.

wuchangming avatar wuchangming commented on May 22, 2024

iOS提供的webview 。如果没改过UserAgent,按道理应该是没问题的。

from spy-debugger.

TomorrowIsBetter avatar TomorrowIsBetter commented on May 22, 2024

请教,能够配合charles将请求map到本地吗,为什么这个时候并没有显示整个html以及打出的console

from spy-debugger.

TomorrowIsBetter avatar TomorrowIsBetter commented on May 22, 2024

@wuchangming 赞!解决啦

from spy-debugger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.