Fortunately, WordPress comes with a nice feature named debugging that allows you to see or hide the errors when debugging mode is on. To start this feature in your site, you have to initially add the following code in your WordPress configuration file.
You also can turn on debugging while hiding the errors on your site and saving them in a log file. To do so, you have to add only the code to your configuration settings given below.
This code will create a file named debug.log inside the wp-content folder of your site and stock all debugging errors and notices inside the log file.
This is how you can manage to debug with your WordPress site. Hopefully, this pro-tip was helpful. Find more Pro-tips here.