right click the solution in the Solution Explorer-> Properties-> Debug ->Enable Debuggers-> Enable unmanaged code debugging