Before I normally debug my application in Visual Studio, I normally launch VS2013 with a script that sets a bunch of environment variables (like PATH for certain DLLs), and other crucial variables to the application. However, when I try to debug the same application in Visual Studio using Nsight, it won’t let me launch the executable I’m trying to debug in the same environment that I launched my visual studio in. I always get errors telling me about missing DLLs, which again is the purpose for me launching Vs2013 through my script and I can’t find anywhere that I can set any environment variables before I launching the application with Nsight.
Does anyone know how I can launch my application with the NSight GPU debugger in the current environment without having to set them on a user or system basis? I actually even just tried that and that doesn’t seem to work either. Also im doing local host debugging if that helps.
I’ve also asked this before, and people have told me to go to Nsight properties select Launch as External application then setting my path to the script. Tried this as well. Doesn’t allow you to launch scripts. Only executables.