how to debug,when i develop the android game with cocos2d-x

i’m so sorry, i develop the android game in mac,someone tell me i can debug the game with xcode,but how can do it,thank you