Recently, because of the project's relationship, has been testing the app, but the more vexing problem is that the app's test is not like the Web test, can be directly through the development tool to see the request and response, for some things can only go to the log (more trouble), accidentally found that fiddler was configured, Can view the request, and switch to a different environment (development, testing, production), and do not have to modify the app, it is very useful, the following share with you
1. Download and install fiddler (win Platform only), and install
2, start fiddler, find Tools-->fiddler options, the box appears
Set the port and tick allow remote computers to connect
3. Check the IP address of the host Fiddler:
4, on the top of the mobile phone configuration agent, save (do not know how to set up their own model agent, please Google yourself)
5, open the app, on the top of the fiddler can see the phone sent the request (the Red box labeled tab, the Reader self-study it)
6, sometimes need in the test environment, production environment, development environment Test app, this time need to play different app package for testing, more trouble, and sometimes error, this can be achieved by another setting of fiddler.
:tools-->hosts--> the frame in turn, configure it inside the box (tick the ENALBE option to make the changes to take effect, #表示注释)
7, fiddler display the IP address of the server
Rules-->customize rules--> in the position of the red box to add the code inside the small red box, save the restart, and then in the Fiddler inside adjust the location of the IP bar (generally just configured, is in the last column, need to configure themselves)
In short, Fiddler has a lot of powerful features that need to be slowly excavated
Fiddler get phone Request