Debugging on Eclipse with cudaIpcMemHandle_t

Hi,

In Eclipse I cannot seem to debug an application that uses cudaIpcMemHandle_t.
The ‘receiving’ end gets an error when trying to open calling cudaIpcOpenMemHandle(). The same code works when I run it on the command line. How can I debug this type of application?

error:
cudaIpcOpenMemHandle((void **) &gpuMemoryHandle, ipcHandle, cudaIpcMemLazyEnablePeerAccess) returned invalid argument(11:cudaErrorInvalidHandle)

OS: Ubuntu 16.04
Eclipse: Nsight Eclipse Edition Version 8.0

Thanks,

Ronaldo Q.