Environment installation
Mono cheap
First of all, you need to use .Net compiled programs under Mac, and you need to use the cross-platform solution Mono (at this stage, Microsoft has launched the cross-platform solution .Net Core, but it only supports console programs for the time being). The installer can be downloaded from http://www.mono-project.com/download/stable/ .
For the installation process, refer to the official installation documentation . After the installation is complete, open the command line and enter: Mono -V to test whether the installation is successful, or refer to the official demo to write and execute the test.
After the above installation is completed and the test installation is successful, open the command line again and run the following command:
#<Mono Version> 这个填写Mono的版本号,按照文件目录寻找文件,并替换 我所使用命令如下
#/Library/Frameworks/Mono.framework/Versions/5.8.1/bin/mozroots --import --sync
/Library/Frameworks/Mono.framework/Versions/<Mono Version>/bin/mozroots --import --sync
This step is to download all trusted root certificates from Mozilla LXR and store them in Mono's certificate store. The root certificate can be used to request https addresses.
Fidder installation
Download the compressed package of fiddler-mac.zip from the Fiddler official website https://www.telerik.com/download/fiddler . Unzip it to a path with non-Chinese characters.
Fiddler in action
Open the command line, go to the decompression directory of Fiddler, and execute the following command:
mono Fiddler.exe
Notice:
Error at startup, similar to the following information:
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Process 97084 detached
(lldb) quit
Abort trap: 6
Solution: Switch 32bit-mono to start Fiddler
mono --arch = 32 Fiddler.exe