Add support for VS LocalDebuggerCommand property
Analogous to VS_DEBUGGER_WORKING_DIRECTORY
, there should be a VS_DEBUGGER_COMMAND
target property that sets the <LocalDebuggerCommand>
in the Visual Studio project file.
With VS 2015 this works analogous to VS_DEBUGGER_WORKING_DIRECTORY
by setting <LocalDebuggerCommand>
in the generated .vcxproj file. Not tested with other VS versions.
For projects with lots of dynamic libraries, the simplest way of running the application from within Visual Studio is to build the INSTALL
target and run the executable inside the CMAKE_INSTALL_PREFIX
, as all required libraries and config files are there. Currently, we need to generate the .vcxproj.user
file manually to set the LocalDebuggerCommand
and LocalDebuggerWorkingDirectory
to achieve this. With the new VS_DEBUGGER_COMMAND
target property this wouldn't be necessary anymore.
See also #17759 (closed) (LocalDebuggerEnvironment) and #8884 (closed) (custom environment variables).