If this is a repeated question, please forgive me!
I don't know how to debug directly to the iPhone 4 device using Xcode of my project. Please share and help me on providing the steps or official tutorial link to do this.
Thanks.
Please register as a iPhone Developer in Apple, so that you will get all the necessary things to develop the app.
If you are registered developer then once you have downloaded the provisioning profiles onto the target, you can select the target from the dropdown menu to launch your application. After its launched you can set breakpoints, debug, view debug logs etc in the exact same way as you would do on the simulator. Theres nothing different to it.
Only step would be to deploy it on target.
If you havent got the provisioning profile, then follow apple's guidelines on their site.