Minecraft wiki entry for Debug_mode, associated text: If a Nether or End portal is used, or teleported using /execute, the player spawns in a Nether version or an End version of the debug world, respectively. The sky, light level and other properties remain appropriate to the dimension.