People like Malleo make use of 'out of bounds', where random objects are usually stored. However, these TASers are limited to four methods (as far as I can understand):
- Resetting the room through door activation (ie going far enough left/right to trigger entrance to a different room)
- Doing 'super jumps' (ie infinite height glitches)
- Dying (might sound stupid but it can respawn the player to a certain area)
- Making use of objects stored out-of-bounds (like a spring)
Debug rooms are an in-game debug menu for the programmers and testers.
If there's a way to get in, there's a way to get out. Otherwise, the testers would be stuck in there forever. Furthermore, some debug rooms are intended to be accessed by the player.
Debug rooms change stuff, so can't they change your in-game location?
As a final thought, you might consider soft-resets or a dirty save file.
Thank you and have a nice week! :)