Allows turning debugging on or off