my debug mode was a mod, so if you want to delete it, you just have to find it in the mod folder and delete it. Also, the debug mod isn't the only problem, some other mod (don't know which one yet) makes it impossible for you to exit your bag. All I know is that it isn't miningforrich, walk through walls or autohook.