---
title: explain
categories: |
debug
version: 0.104.0
debug: |
Explain closure contents.
usage: |
Explain closure contents.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->
# `explain` for [debug](/commands/categories/debug.md)
<div class='command-title'>Explain closure contents.</div>
## Signature
```> explain {flags} (closure)```
## Parameters
- `closure`: The closure to run.
## Input/output types:
| input | output |
| ------- | ------ |
| any | any |
| nothing | any |
## Examples
Explain a command within a closure
```nu
> explain {|| ls | sort-by name type --ignore-case | get name } | table --expand
```