Check if the debugging clock frequency is fast. If the debug clock frequency is more than one-third of the system clock, then debugging cannot be done properly.
Please check these links for debug issues-
If possible post your project so that we can recreate the issue
Thank you for your help.
Sorry for the delayed thanks.
I have already work out the issue with those link you sent me.