Repository: microsoft/terminal (language: cpp)

Issue:
Try to link sources for public symbols since the source is on GH anyway
```
  - task: PowerShell@2
    displayName: Source Index PDBs
    inputs:
      filePath: build\scripts\Index-Pdbs.ps1
      arguments: -SearchDir '$(Build.SourcesDirectory)/appxsym-tmp' -SourceRoot '$(Build.SourcesDirectory)' -recursive -Verbose -CommitId $(Build.SourceVersion)
      errorActionPreference: silentlyContinue
```
?

_Originally posted by @miniksa in https://github.com/microsoft/terminal/pull/12441#discussion_r802155336_


Discussion / hints:
Something like this should probably go into the YAML for where we're rooting out the public symbols and uploading them to the public Microsoft symbol server. This represents adding this (or whatever correct variant makes it do the thing) and checking they show up right in the debugger.

Fix patch:
diff --git a/build/pipelines/release.yml b/build/pipelines/release.yml
index 99cbf44bbb3..42891ad49e3 100644
--- a/build/pipelines/release.yml
+++ b/build/pipelines/release.yml
@@ -352,6 +352,14 @@ jobs:
         }
       displayName: Extract symbols for public consumption
 
+    # Pull the Windows SDK for the developer tools like the debuggers so we can index sources later
+    - template: .\templates\install-winsdk-steps.yml
+    - task: PowerShell@2
+      displayName: Source Index PDBs (the public ones)
+      inputs:
+        filePath: build\scripts\Index-Pdbs.ps1
+        arguments: -SearchDir '$(Build.SourcesDirectory)/appxsym-temp' -SourceRoot '$(Build.SourcesDirectory)' -recursive -Verbose -CommitId $(Build.SourceVersion)
+
     # Publish the app symbols to the public MSDL symbol server
     # accessible via https://msdl.microsoft.com/download/symbols
     - task: PublishSymbols@2


Test patch: