Registers a source-level hook on a function location.
The hook is armed when the underlying hooks manager is started.
Note:
onEnter(ctx) { ... }
line
col
Optional
Use addHook() with the at handlers instead. Adds a LiveHook. Does NOT arm breakpoints until startLiveHooks(pageId) is called.
at
Arms all Hooks for the given page.
Use addHook() with the at handlers instead. Arms all LiveHooks for the given page.
Disarms all Hooks.
Use addHook() with the at handlers instead. Disarms all LiveHooks.
Registers a source-level hook on a function location.
The hook is armed when the underlying hooks manager is started.
Note:
onEnter(ctx) { ... }), not anonymous functions or arrow functions.lineandcolare 1-based.