Angular has a convenient $log service that allows you to log debug messages to the console: $log.debug('Some debug message'); The cool thing about debug messages is that you can easily turn logging on/off in one place using the $logProvider: (function (angular) { angular .module('app') .config(setDebugMode); /** * Turn on/off debug mode */ function setDebugMode($logProvider) { $logProvider.debugEnabled(true); } // Inject dependencies; setDebugMode.$inject = [