Table of Contents

Javascript - Debugger

About

Debugger in Javascript

The debugger needs to be able to access the source map file in order to stop to breakpoint

List

Browser debugger

In the debugger window, you can set breakpoints in the JavaScript code.

Debugger keyword

If you put the debugger keyword in a script and that you open the devtool, browser debugger will show up.

function toDebug(){
   let i = 1;
   debugger;
}
toDebug();

Javascript Debugger Keyword In Devtool

Remotely

via the Chrome debugger protocol

Node

https://nodejs.org/api/debugger.html#debugger_v8_inspector_integration_for_node_js