PUBLISHED : |debug

**SPIP**

# Article validated

The article "**|debug** (https://www.spip.net/en_article6560.html)" was
validated by <multi>[ar]جورج[fr]George [en]George</multi>.

* * *

## |debug

Wednesday 20 May 2020 , by [jack](.././?page=auteur&id_auteur=593&)

The filter `|debug` can be used to fine-tune a template; it displays
directly on the screen (for the webmaster only) the current value passed to
it. It can also be found in the log file `debug.log`.

The possible argument that we pass to him allows us to better find our way
if we have several debug points on the same page.

`[(#ID_ARTICLE|debug{id_article})] [(#ID_RUBRIQUE|debug{id_rubrique})]`
displays:

    'id_article' = 12
    'id_rubrique' = 4

**Warning:** This filter must be removed after finishing development.

**P.S.**
The `|debug` filter was introduced in SPIP 2.1 and SPIP 3 on 3 June 2014.

— Sent by SPIP (https://www.spip.net/)

rubon199.jpg