Reason: Sometimes we need to add a temp test code but forget to disable it in the release ( production ) version.Wrap it to DEBUG scope will keep the release code clean & safe. Example: So, anyway please make sure your test code is for DEBUG mode only.