summaryrefslogtreecommitdiffstatshomepage
path: root/www/content/extensions/debug.md
blob: e56c134164da00e70ab2d5286b772ff3a4e9e8b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
+++
title = "debug"
+++

This extension includes log all htmx events for the element it is on, either through the `console.debug` function
or through the `console.log` function with a `DEBUG:` prefix.

## Install

```html
<script src="https://unpkg.com/htmx.org@1.9.11/dist/ext/debug.js"></script>
```

## Usage

```html
<button hx-ext="debug">Debug Me...</button>
```