Preface:
Agile development mode, online enterprises have problems, the development environment has no problems, how to use local services to run local code proxy online environment code.
Environment:
MacOS 10.15.7
Chrome Version 96.0.4664.93 (Official version) (x86_64)
Question:
There is a problem with the code line, the local has been modified, the business logic is very responsible, I do not trust whether it is completely fixed, if the online logic can be executed by the local agent, it is reliable.
Note: if you are running a project in a local environment, you can insert code snippets directly in F12, refer to this article
Chrome Developer Tools features: Sources panel
Blog.csdn.net/array_huang…
Here’s the code on the line, can’t plug in, no solution?
Solution:
The answer is: yes, but with two plug-ins
- Whistle (it can directly act as an online address to catch packets)
wproxy.org/whistle/
Tutorial is very fine, free can slowly study, I also see a little now.
Once the installation is complete, W2 Start starts Whistle
The browser open http://10.168.103.217:8899
- SwitchyOmega plug-in
Install the tutorial www.jianshu.com/p/8320105f8…
Github
Github.com/FelisCatus/…
Find the latest version
Download it and change it to a.zip file and unzip it
Then drag directly into the Chrome extension
Enable browser operations as follows
If the icon turns blue, the function is enabled successfully.
Then in the upper right corner of your browser
Finally, to enable the just proxy proxy, click Proxy
Browser input online address:
You can see that the local code is online and the environment is working.
After debugging the proxy, cut it into a direct connection and stop whistle with w2 stop on the whistle command line.