debug

An article by Gaspard Bucher

Display debugging information

  1. action
  2. ajax
  3. API
  4. classes
  5. common attributes
  6. conditions
  7. context
  8. dates
  9. display
  10. forms
  11. i18n
  12. meta
    1. debug
    2. default
    3. headers
    4. include
    5. not_found
    6. possible_roles
    7. roles
    8. with
  13. SQLiss
  14. urls

Display debugging information

  • show what to show (params)
  • title,message display some text

The “debug” zafu tag part is only compiled in “dev” mode. In normal rendering, nothing is displayed.

Display request parameters (useful when debugging ajax calls):

<r:debug show='params'/>

You can also display the expected/real class of the current context:

<r:debug show='class'/>

Display developer help messages:

<r:debug message='insert ajax finder here !'/>

expand

Since the “debug” tag will expand it’s content, you can use sub-methods to display the content of a variable with some hints on what it means:

<r:debug title='node count:' do='[p_count]'/>

You could also render a huge bunch of things with:

<r:debug title='node info:' do='include' template='debug'/>