Put this at the top of the file:
var console = {};
console.log = function(){};
For some browsers and minifiers, you may need to apply this onto the window object.
window.console = console;
More Related Contents:
- How can I debug my JavaScript code? [closed]
- How can I make console.log show the current state of an object?
- How do you launch the JavaScript debugger in Google Chrome?
- How do I debug Node.js applications?
- Why is console.log() considered better than alert()?
- Is it possible to override JavaScript’s toString() function to provide meaningful output for debugging?
- Breakpoint on property change
- How to set a JavaScript breakpoint from code in Chrome?
- Using Chrome, how to find to which events are bound to an element
- JavaScript: Is there a way to get Chrome to break on all errors?
- How to make Google Chrome JavaScript console persistent?
- How to set breakpoints in inline Javascript in Google Chrome?
- Debugging scripts added via jQuery getScript function
- Common sources of unterminated string literal [duplicate]
- JavaScript data formatting/pretty printer
- Intercept calls to console.log in Chrome
- How do I print debug messages in the Google Chrome JavaScript Console?
- How to show full object in Chrome console
- Html/Javascript debugging in JavaFX WebView
- console.log.apply not working in IE9
- Is there something like “Firebug for IE” (for debugging JavaScript)?
- How to go about debugging JavaScript in the HtmlService in Google Scripts
- Chrome debugging – break on next click event
- Get rid of [dynamic] JavaScript views in Visual Studio
- JavaScript Troubleshooting Tools in Internet Explorer
- JavaScript: How do I print a message to the error console?
- Find what javascript changes the DOM?
- How do I find which JavaScript is changing an element’s style?
- Chrome developer tools do not show all JavaScript files any more
- How to replace Javascript of production website with local Javascript?