debugMode overrides on the functions pushVariables and popVariables and enables to use db.where. Never execute debugMode inside a block of pushVariables and popVariables