---
title: Debug Event
description: "Play 0x1D, server → client."
---

`play` · `0x1D` · **clientbound** (server → client)

Sends a one-off debug event from the debug subscription system. The server sends it only when the client has subscribed to debug events. Development tools use it to visualize things such as game events or goal selectors; normal clients ignore it.

Sent by the server, read by the client. Listen for it with `client.on("DebugEvent", (data) => …)` on the receiving side.

## Fields

| Field | Type | Notes |
|---|---|---|
| `event` | DebugSubscriptionEvent |  |

## Send it

```ts
await client.sendPacket("DebugEvent", {
  event: /* DebugSubscriptionEvent */,
});
```

Field aliases listed under Notes are accepted as alternative keys when writing.

Source: [`src/Core/Versions/776/Packets/play/clientbound/DebugEvent.ts`](https://github.com/GDLev/mc-protocol/blob/master/src/Core/Versions/776/Packets/play/clientbound/DebugEvent.ts)
