Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第 281 期 《手机端调试本地代码 (Charles 方式)》by 无尘 #277

Open
dave-qiao opened this issue Apr 2, 2022 · 0 comments

Comments

@dave-qiao
Copy link

dave-qiao commented Apr 2, 2022

Charles 方式

  • 前置条件

  • 手机 WIFI 设置代理

    • 手动输入 当前电脑的 IP 地址
    • 端口 8888,跟 Charles 设置的代理端口保持一致
  • 电脑的 Charles => tools => 设置 Map remote 官方文档详见

    • Map form (当前按照 M站 为例)
      • Protocol: https (看你当前需要转发的协议)
      • Host: stg-m.helijia.com
      • Port: 443 (一般测试及线上都是这个端口,https 默认端口)
      • Path: /
    • Map to (看你本地开发访问的地址)
      • Protocol: https (看你当前需要转发的协议)
      • Host: dev-m.helijia.com
      • Port: 8000 (看你项目的端口设置)
      • Path: /
  • 在手机访问 Map form 的地址即可,Charles 会自动转发至你设置的本地开发

@dave-qiao dave-qiao changed the title 手机端调试本地代码 (Charles 方式) 第 281 期——手机端调试本地代码 (Charles 方式) Apr 2, 2022
@dave-qiao dave-qiao changed the title 第 281 期——手机端调试本地代码 (Charles 方式) 第 281 期 《手机端调试本地代码 (Charles 方式)》by 无尘 Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant