Do not do this. Debug mode was intentionally disabled for anyone not actually developing the game. Dozens upon dozens of false flag bug reports were created as a result of people leaving debug mode on and then complaining when things happened like the jungles being full of nothing but kerokeras.
If you want infinite items, which is the main reason most people use debug mode, type "furfag". It was created specifically for the purpose of providing this feature of debug mode.
If you want to ignore bad ends, you're looking for easy mode.