The advanced version of yii2 is used here. Configure debug mode for interface access.
Configuration file directory: frontend/config/main-local.php (Recommended learning: yii tutorial)
Configuration content:
1 2 3 4 5 6 7 |
|
allowedIPs field indicates the ip field that is allowed to be accessed. Then historySize represents the size of the stored debug file.
Enter the address frontend/web/index.php?r=debug to enter debug mode.
Click the tag to enter the request, and then view the SQL, cpu occupancy, execution time, etc.
Close debug
1 2 3 |
|
The above is the detailed content of How to turn off debugging in yii2. For more information, please follow other related articles on the PHP Chinese website!