Posted on May 28 under Technology, Tutorials “If debugging is the process of removing software bugs, then programming must be the process of putting them in” – Edsger Dijkstra (Dutch computer scientist, winner of the 1972 Turing Award) One cannot simply start debugging of a program unless he/she knows how the program is built or how it is working. For the programmers who wrote that program, finding bug is much easy as they know where and how of that thing. So a few steps to make debugging easy: Comment your program appropriately, it is the single most powerful weapon you have, while debugging a large chunk of code. Make your code as readable as possible, coz Martin goldman once said “Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live”. Debugging In WordPress WordPress has many inbuilt features to make debugging easy. Some of these tools are listed below and should be used in development phase. Debugging With WP_DEBUG The most important debugging tool you need to know about is WP_DEBUG. WP_DEBUG is a boolean constant, which triggers the “debug” mode throughout WordPress. It’s found in the wp-config.php file in your WordPress
Share This

We are using cookies on our website

Please confirm, if you accept our tracking cookies. You can also decline the tracking, so you can continue to visit our website without any data sent to third party services.