How to debug device code in dll?

Hello.
First, i have only one vs project, using CUDA and all was fine.

But now i have two vs projects. One of them - dll using cuda.
And another project - the program using that dll.

If i set EmuDebug mode, the device code still compile for gpu and there is no device emulation.

what should i do to use device emulation mode and debug my code as earlier?
i use CUDA 1.1

forward thanks.