Configure CMake debugging sessions in Visual Studio ...
docs.microsoft.com › en-us › cppOct 29, 2021 · First, switch to CMake Targets View in the Solution Explorer window. Then, right-click on an executable and select Debug. This command automatically starts debugging the selected target based on your active configuration. Customize debugger settings You can customize the debugger settings for any executable CMake target in your project.
VS_DEBUGGER_COMMAND_ARGUMENTS - CMake
cmake.org › VS_DEBUGGER_COMMAND_ARGUMENTSNew in version 3.13. Sets the local debugger command line arguments for Visual Studio C++ targets. The property value may use generator expressions . This is defined in <LocalDebuggerCommandArguments> in the Visual Studio project file. This property only works for Visual Studio 2010 and above; it is ignored on other generators.