It happens to the best of us.
Particularly when dealing with languages without built in debugging capabilities such as breakpoints and watched variables, these bugs bite developers. Debugging code, alerts and Response.Writes, show up in production code.
How do you separate debugging concerns from functional code in javascript, php, or vbscript? How do you ensure those debugging changes never enter production environments?
When this sort of debug code is left in the application, the application is open to unintended modes of interaction. These back door entry points create security risks because they are not considered during design or testing and fall outside of the expected operating conditions of the application.
The most simple method
define("DEBUG", true); if (DEBUG) { echo "Debug Method"; }
For js its similar.
Human error is hard to prevent
https://meta.stackexchange.com/questions/71780/lol-debugging-are-we-so-homepage-alerts-false
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With