in teamcity-symbol-agent/src/main/java/jetbrains/buildServer/symbols/WinDbgToolsDetector.java [50:75]
public void agentInitialized(@NotNull BuildAgent agent) {
final BuildAgentConfiguration config = agent.getConfiguration();
if (!config.getSystemInfo().isWindows()) return;
LOG.info("Searching WinDbg installation...");
LOG.info("Searching the WinDbg as part of Windows 10 SDK");
File winDbgHomeDir = searchSDK8AndLater(WIN_DBG_10_ROOT_ENTRY_NAME, WIN_SDK_10_ROOT_ENTRY_NAME, "10");
if(winDbgHomeDir == null){
LOG.info("Searching the WinDbg as part of Windows 8.1 SDK");
winDbgHomeDir = searchSDK8AndLater(WIN_DBG_81_ROOT_ENTRY_NAME, WIN_SDK_81_ROOT_ENTRY_NAME, "8.1");
if(winDbgHomeDir == null) {
LOG.info("Searching the WinDbg as part of Windows 8 SDK");
winDbgHomeDir = searchSDK8AndLater(WIN_DBG_8_ROOT_ENTRY_NAME, WIN_SDK_8_ROOT_ENTRY_NAME, "8");
} if(winDbgHomeDir == null) {
LOG.info("Searching the WinDbg as part of Windows 7 SDK");
winDbgHomeDir = searchSDK7x();
}
}
if(winDbgHomeDir == null) LOG.info("WinDbg tools were not found on this machine.");
else{
final String winDbgHomeDirAbsolutePath = winDbgHomeDir.getAbsolutePath();
LOG.info("WinDbg tools were found on path " + winDbgHomeDirAbsolutePath);
config.addConfigurationParameter(WIN_DBG_PATH, winDbgHomeDirAbsolutePath);
}
}