Skip to content

Commit 63b56ba

Browse files
authored
UX Client Script Debug Event (#1575)
* Create debug-event.js * Create readme.md
1 parent f0c0aab commit 63b56ba

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* @param {params} params
3+
* @param {api} params.api
4+
* @param {any} params.event
5+
* @param {any} params.imports
6+
* @param {ApiHelpers} params.helpers
7+
*/
8+
function handler({ api, event, helpers, imports }) {
9+
console.log(`DEBUG Event ${event.elementId} ${event.name}`, event);
10+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# DEBUG Event UX Client Script
2+
3+
This repository provides a simple UX Client Script for logging events to the console. Named `DEBUG Event`, this client script is designed to assist in debugging by outputting key event details to the console, helping developers track event triggers and properties in real-time.
4+
5+
## Features
6+
7+
- **Console Logging**: Logs event details, including `elementId` and `name`, to the console for easy tracking.
8+
- **Simplified Debugging**: Useful for monitoring and debugging UX interactions without complex setup.
9+
10+
## Script Overview
11+
12+
```javascript
13+
/**
14+
* @param {params} params
15+
* @param {api} params.api
16+
* @param {any} params.event
17+
* @param {any} params.imports
18+
* @param {ApiHelpers} params.helpers
19+
*/
20+
function handler({ api, event, helpers, imports }) {
21+
console.log(`DEBUG Event ${event.elementId} ${event.name}`, event);
22+
}

0 commit comments

Comments
 (0)