It might be easier on you if you knew what all these cheats actually do. I'll do my best to explain them, and feel free to ask any questions if you still don't understand.
testingcheatsenabled true/false: When active, it gives you more control over sims and objects if you shift+click on them. It also allows you to activate other testing cheats. Enter "true" to activate the cheats, "false" to deactivate them. It's not recommended to leave this cheat active for a long time, as EA (and a few players) says that it can cause issues in your game. Despite this, many players do leave this cheat active for extended periods of time without any issue. I have never experienced any issues personally, so I don't know what those issues would be.
restrictbuildbuyinbuildings on/off: This allows you to build or place objects anywhere on a lot that is designated an apartment building. The presence of one or more of the various apartment markers is what designates a building as an apartment. This is a testing cheat and can only be activated or deactivated if testingcheatsenabled is set to true.
buydebug on/off: This opens up a new menu in Buy Mode that allows you to purchase and place objects that you can't normally buy. Spawners, sculptures, profession rewards, tomb objects, the various markers and more can be found here. This is also a testing cheat and can only be activated or deactivated if testingcheatsenabled is set to true.
moveobjects on/off: This one you probably already know. It allows you to place or remove objects without restriction. This is a standard cheat and can be activated and deactivated with or without activating the testing cheats.
To build outside a living area, all you really need is "testingcheatsenabled true" and "restrictbuildbuyinbuildings off". You only need "buydebug on" if you need to place apartment markers. If you're modifying an existing apartment, those markers are already present so you probably won't need it. The "moveobjects on" cheat isn't absolutely necessary either, but you may find it helpful in placing items in odd locations (like celing lights in front of a door or over a stairway).