rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
76 lines (37 loc) • 1.1 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [rc-js-util](./rc-js-util.md) > [\_Debug](./rc-js-util._debug.md) > [configureBreakpoint](./rc-js-util._debug.configurebreakpoint.md)
## \_Debug.configureBreakpoint() method
Most debuggers will ignore `debugger` statements in node\_modules. Skirt around this by letting the consumer set their own callback for this.
**Signature:**
```typescript
static configureBreakpoint(this: void, onBreakpoint: () => void): void;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
this
</td><td>
void
</td><td>
</td></tr>
<tr><td>
onBreakpoint
</td><td>
() => void
</td><td>
called on debug assert etc, you should provide a function with a `debugger` statement.
</td></tr>
</tbody></table>
**Returns:**
void
## Example
```typescript
// the braces are not optional
_Debug.configureBreakpoint(() => { debugger; })
```