1

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 2

1

You can use this JavaScript Errors Notifier Chrome Extension to get that error message.

Sign up to request clarification or add additional context in comments.

2 Comments

Have you been setting it up?
i chose all options
0

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");

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.