# @prisma/debug

> This package is intended for Prisma's internal use

Latest version **7.10.0** (published 2026-08-25) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @prisma/debug
pnpm add @prisma/debug
yarn add @prisma/debug
bun add @prisma/debug
```

## Health

**Score 80/100 (A)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 7.10.0 |
| Published | 2026-08-25 |
| First published | 2020-05-13 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 28.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 47606 |
| Author | Tim Suchanek <suchanek@prisma.io> |
| Maintainers | prismabot, aqrln, wmadden-prisma, rtbenfield |

## Links

- npm: https://www.npmjs.com/package/@prisma/debug
- Repository: https://github.com/prisma/prisma
- Homepage: https://www.prisma.io
- Issues: https://github.com/prisma/prisma/issues
- npm.io page: https://npm.io/package/@prisma/debug

## Recent versions

- 7.10.0 (latest) — 2026-08-25
- 8.1.0-dev.6 (dev) — 2026-09-01
- 7.10.0-integration-fix-prisma-publish-token.1 (integration) — 2026-08-17
- 7.9.1-dev.1 (patch-dev) — 2026-07-27
- 6.19.3 (prev) — 2026-04-01
- 8.1.0-dev.5 — 2026-09-01
- 8.1.0-dev.4 — 2026-09-01
- 8.1.0-dev.3 — 2026-09-01
- 8.1.0-dev.2 — 2026-08-27
- 8.1.0-dev.1 — 2026-08-25
- 7.10.0-dev.58 — 2026-08-17
- 7.10.0-integration-prisma7-project-closeout.10 — 2026-08-17
- 7.10.0-dev.57 — 2026-08-14
- 7.10.0-integration-prisma7-project-closeout.9 — 2026-08-13
- 7.10.0-integration-prisma7-project-closeout.8 — 2026-08-13
- … 10129 more at https://npm.io/package/@prisma/debug/versions

## README

# @prisma/debug

A cached [`debug`](https://github.com/visionmedia/debug/).

---

⚠️ **Warning**: This package is intended for Prisma's internal use.
Its release cycle does not follow SemVer, which means we might release breaking changes (change APIs, remove functionality) without any prior warning.

If you are using this package, it would be helpful if you could help us gain an understanding where, how and why you are using it. Your feedback will be valuable to us to define a better API. Please share this information at https://github.com/prisma/prisma/discussions/13877 - Thanks!

## Usage

```ts
import Debug, { getLogs } from '@prisma/debug'

const debug = Debug('my-namespace')

try {
  debug('hello')
  debug(process.env)
  throw new Error('oops')
} catch (e) {
  console.error(e)
  console.error(`We just crashed. But no worries, here are the debug logs:`)
  // get 10 last lines of debug logs
  console.error(getLogs(10))
}
```

---
_Source: https://npm.io/package/@prisma/debug · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
