---
title: "lint/security/no-debug-calls"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

<RuleId id="lint/security/no-debug-calls" />

In the [`coding-style`](/docs/rules/sets/coding-style) set. Unsafe fix: it can change behaviour. Intent: suspicious.

## What it does

Remove or report debug calls left in code: dd(), dump(), var_dump(), ray(), and ->dd()/->dump() in Pest expectations.

## Configuration

```toml title="pun.toml"
[lint.rules]
"security/no-debug-calls" = "error"
```

To skip it in some files or lines, add an [override](/docs/configuration/pun-toml#lint) or an [ignore comment](/docs/configuration/ignore-comments).

## Replaces

- [`RemoveDebugExpectations`](https://pestphp.com/docs/rector#content-removedebugexpectationsrector) (pest-plugin-rector)
- [`no-debug-symbols`](https://mago.carthage.software/1.61.0/en/tools/linter/rules/#no-debug-symbols) (mago-linter)

[More lint/security rules](/docs/rules/lint/security) · [Edit this page](https://github.com/shipfastlabs/pun/edit/main/crates/pun-config/rules/mapping.toml)
