Manual:$wgDevelopmentWarnings

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