# `show`

_Format and display at the console_
```syntax
show x    show[x]
```

Formats `x` and writes it to the console; returns the identity function `(::)`.
```q
q)a:show til 5
0 1 2 3 4
q)a~(::)
1b
```

> **Tip — Display intermediate values**
>
>
> ```q
> q)f:{a:x<5;sum a}
> q)f 2 3 5 7 3
> 3i
> q)f:{show a:x<5;sum a}    / same function, showing value of a
> q)f 2 3 5 7 3
> 11001b
> 3i
> ```
>
----

[Display](display.md)


[Debugging](../how_to/basics/debug.md)
