If it is a development environment, it is easier to:
The most stupid way is the mobile phone QQ computer opened QQ to do a good job of the page to mobile QQ directly open.
Reference:
http://blog.allenm.me/2014/05/mobile-web-debug-guide-1/
http://blog.allenm.me/2014/05/mobile-web-debug-guide-2/
For mobile debugging, especially in the production environment, a certain tool must be used:
Method 1:
With fiddler debugging:
First step: 1.fiddler parameter setting
2.Connections panel port number settings:
3. Using IP for mobile-side web debugging
For example, my Computer WiFi is Lazyman-baidu,ip is 196.168.2.76. So the phone can set up a proxy network:
Andro (mine is mx4,iphone basically the same treatment)
Note: Need to be on the same network, IP is the same as PC
First step, Setup complete OK
Step Two: Start debugging
Click Fiddler Capture Network request, click on the request, right
Click Save and you can start debugging basically.
Method Two: If you just want to debug your code simply, you can use Chrome's debugging tools. Click on the top right corner of phone mode debugging
Device sets the phone type, network sets the type of mobile networks, such as 3G,4G, which is primarily used to simulate cellular speed. UA is used to simulate the browser and can be manually entered for modification. For example, change iOS8 to iOS9 ...
This method debugs the code well.
Web-Mobile Production environment debugging