Added support for optionnal filters in debug mode

Filters prefixed with a question mark are now not applied when debug is set to true.