Dave Dash

Debugging yaml configuration with the symfony web debugger

Tagged: programming, symfony, symfony, debug, web-debug, configuration, yaml

[tags]symfony, yaml, configuration, web debug, debug[/tags] There's no doubt that yaml configuration files in symfony can be troublesome to debug.

The symfony web debugger comes to the rescue.

Let's say you're app.yml has the following:

app:
  admin:
    email: me@example.com

In your development environment you can look at click on "vars & config" and under settings see all the sfConfig::getable variables. You'll find the above listed as:

app_admin_email: me@example.com

This technique is very handy when trying to figure out what key you need to use in sfConfig::get().