Open
Description
Goal
Having a function with signature breakpoint : a -> a
that will call the js debugger
function to pause the execution and to enable step debugger, and maybe log to console.
Use Cases
Debug complex computations using |> Debug.breakpoint
between, or for cases where Debug.log could be spammed dozens of times and would be hard to know what is happening without pausing the execution.