It's a bad practice to do debugging on a live site when it comes to plugins and theme source code. I suggest creating a duplicate WordPress install in a subdirectory where you can experiment safely before going any further.
WordPress has features that make this easier than it sounds. The Export and Import tools move the content of your old site into the new site. Moving WordPress provides further guidance.