Is it posible to execute part of a js file only when I have the developer tools opened?
I want something like
#if DEBUG
executeMethodOnlyInDebugger();
#endif
but for JavaScript.
No, there is no conditional compilation natively in javascript.
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