- Open Nsight Monitor Nsight Visual Studio Edition 3.1 -> Nsight Monitor
- Go the Nsight Monitor Options (on the left of taskbar) -> CUDA -> Use this Monitor for CUDA attach ->true
- Add environmental variable
NSIGHT_CUDA_DEBUGGER = 1
via Advance System Settings -> Environmental Variables and add the aforementioned variable both in User and System variables in the two panels. - Start Matlab and Visual Studio and try to attach Matlab with the Nsight debugger and qualifier the Computer name and that it is.
Tested on Matlab 2011a 64x and VS 2010 with SP1.