Javascript - (Debug|Diagnostic)

About

Code - Debugging (Bug) in Javascript

List

Code

Console Log

The debugger Keyword

The debugger keyword stops the execution of JavaScript, and calls (if available) the debugging function If no debugging is available, the debugger statement has no effect.

Example:

function foo() {
   // .........
   debugger;
   // ...........
}

Browser - Debugger

Reporting API

The Reporting API defines a new HTTP header, Report-To, that gives web developers a way to specify server endpoints for the browser to send warnings and errors to.

Reporting Observer

ReportingObserver gives developers insight into what their code is doing in the wild. ReportingObserver surfaces information on issues like deprecations and interventions, messages that were previously only available in the DevTools console.


Powered by ComboStrap