Skip to content

UX Client Script Debug Event #1575

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions UX Client Scripts/debug-event/debug-event.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* @param {params} params
* @param {api} params.api
* @param {any} params.event
* @param {any} params.imports
* @param {ApiHelpers} params.helpers
*/
function handler({ api, event, helpers, imports }) {
console.log(`DEBUG Event ${event.elementId} ${event.name}`, event);
}
22 changes: 22 additions & 0 deletions UX Client Scripts/debug-event/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# DEBUG Event UX Client Script

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.

## Features

- **Console Logging**: Logs event details, including `elementId` and `name`, to the console for easy tracking.
- **Simplified Debugging**: Useful for monitoring and debugging UX interactions without complex setup.

## Script Overview

```javascript
/**
* @param {params} params
* @param {api} params.api
* @param {any} params.event
* @param {any} params.imports
* @param {ApiHelpers} params.helpers
*/
function handler({ api, event, helpers, imports }) {
console.log(`DEBUG Event ${event.elementId} ${event.name}`, event);
}
Loading