dd(), dump() and Xdebug

Ways to look inside variables while the code runs.

Also called: dd, dump, var_dump, Xdebug, Telescope

Source
General
Language
PHP

In plain English

dd() ("dump and die") prints a value and stops; dump() prints and continues. Remove them before you commit. Xdebug lets an editor pause code step by step.

Example

dd($request->all()) showed the form was sending the wrong field name.

In code

dd($request->all());
logger()->debug('payload', $payload);

Related terms

Added 2026-11-30 · Last reviewed 2026-11-30