The debug menu can be enabled by switching EnableDebugMenu from 0 to 1 in the AppOptions.txt file under your documents (press ~ to display it).
I'm pretty sure there is no way to undo the revealing of the whole map, but you can enter 'help' and then press the 'toggle log' button to view a list of available commands, maybe you'll find one that way.