ctrl + k
On This Page
Functions
Debug Helpers
Debug helpers provide utilities for troubleshooting and debugging in templates.
Functions
log
Logs arguments to the console.
Template Syntax
Parameters
Name | Type | Description |
---|---|---|
args | …any | The values to log |
Returns
undefined
Example
debugger
Triggers the JavaScript debugger, allowing you to inspect the current state of your application.
Template Syntax
Parameters
None
Returns
undefined
Example
debugReactivity
Debugs reactivity by logging the current reaction source and triggering the debugger. This is particularly useful for understanding which reactive dependencies triggered a re-computation.
Template Syntax
Parameters
None
Returns
undefined
Example
Note: The
debugReactivity
helper is specific to the reactivity system and provides detailed information about the current reactive computation. It can be helpful in tracking down unexpected re-renders or understanding the flow of reactivity in your application.