Those are for programmers developing for android who want to test applications on their phones.
Debug mode let's them know details when something goes wrong with the application and mock location allows them to pretend they are in another city/whatever so they can test applications based on location.
I'd leave both off if you're not an Android app developer