1.7 KiB
Installing Required Tools on Windows
The Windows agent scripts build with MSBuild through Visual Studio's developer environment, and the agent debugs directly with CDB. Install Visual Studio with the C++ desktop workload, a Windows SDK, and the Windows debugging tools that provide cdb.exe. If CDB is not available, install the Windows Driver Kit or the Windows debugging tools component from the Visual Studio Installer.
Define these environment variables before asking the agent to build or debug:
VLPP_VSDEVCMD_PATH: absolute path toVsDevCmd.bat, for exampleC:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat.CDBPATH: absolute path tocdb.exe, for exampleC:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe.
After copying the Release .github folder, the agent should use these scripts instead of calling build or execution tools directly:
.github\Scripts\copilotBuild.ps1: builds the solution found fromProject.mdcontext and writesBuild.log..github\Scripts\copilotExecute.ps1: runs unit-test or CLI projects and writesExecute.logfor unit tests.
Run CDB directly in an interactive terminal when debugging.
If the application uses the tools shipped by Release, build them from the Release repository:
- Open
Tools\Executables\Executables.slnin Visual Studio. - Build
Releasewithx64. - Run
Tools\CopyExecutables.ps1. - Confirm
CodePack.exe,CppMerge.exe,GacGen.exe, andGlrParserGen.exeexist inRelease\Tools.
For debugger readability, copy Import\vlpp.natvis from Release to Visual Studio's visualizers folder. Load the natvis file in CDB for debugger commands such as dx.