I want to get obvious message when Javascript has error and don't need to open ChromeDevTools. Anyway is ok,JS or Chrome Extension.
2 Answers
You can use this JavaScript Errors Notifier Chrome Extension to get that error message.
2 Comments
ajay panchal
Have you been setting it up?
Crytis
i chose all options
You can decorate the Console class...
function logger(type, $delegate, ...args) {
$delegate("Called", type, args);
}
for(let prop in console) {
if(console.hasOwnProperty(prop)) {
let $original = console[prop];
if(!($original instanceof Function)) {
continue;
}
console[prop] = function(...args) {
logger(prop, $original, ...args);
return $original.call(console, ...args);
}
}
}
console.log("Greetings");