Debugging CUDA code on Xcode (MAC)?

Hello,

I have created a After Effects plug-in with CUDA code using Xcode on MAC.
plug-in is created.

now I wanted to Debug the CUDA code.
Is it possible to debug CUDA code on Xcode?
if yes, how can we do it?.