Syntax Lookup

Enter some language construct you want to know more about.

debugger()

This is the debugger() function.

debugger() inserts a JavaScript debugger statement. When developer tools are open, execution pauses there.

ReScriptJS Output
let f = (x, y) => {
  debugger()
  x + y
}

Since ReScript 13: debugger() replaces the removed %debugger extension.

References