21 lines
467 B
Markdown
21 lines
467 B
Markdown
![]() |
---
|
||
|
title: raise.debug()
|
||
|
---
|
||
|
|
||
|
```js
|
||
|
raise.debug(data)
|
||
|
```
|
||
|
|
||
|
The `raise.debug()` method adds an event of type `debug` to the pattern.
|
||
|
|
||
|
What happens with this data is entirely up to the frontend developer.
|
||
|
As such, data can by anything you like. A string is common, but you
|
||
|
can also add arrays or objects with data or information you want to
|
||
|
use in your frontend.
|
||
|
|
||
|
<Tip>
|
||
|
|
||
|
All raise methods are available via [the shorthand method](/reference/api/part/shorthand)
|
||
|
|
||
|
</Tip>
|