The following snippet will let you enable and/or disable debug mode in WordPress.

Snippet Source/Credit: Joost de Valk