Manual:$wgDevelopmentWarnings

Details
If set to, MediaWiki will throw notices for some possible error conditions and for deprecated functions.