First of all its very bad practice to debug on the production server.
but sometime the situation arrives where we have to debug on the production server.
here is the few technique sharing to debug on production server.
1. Debug Using Cookies.
Install Crome Extension cookies inspector .
Add Cookies Name : tester
Now Write A code to check is cookies is available or not
if(isset($_COOKIE['tester'])) {
// Write your debug code here.
}
That all.
but sometime the situation arrives where we have to debug on the production server.
here is the few technique sharing to debug on production server.
1. Debug Using Cookies.
Install Crome Extension cookies inspector .
Add Cookies Name : tester
Now Write A code to check is cookies is available or not
if(isset($_COOKIE['tester'])) {
// Write your debug code here.
}
That all.