11

[WFR] Debugger cant create folder structure when trying to get source files for...

 3 years ago
source link: https://developercommunity.visualstudio.com/content/problem/169309/debugger-cant-create-folder-structure-when-trying.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

[WFR] Debugger cant create folder structure when trying to get source files for a pdb

Andrew Stanton reported Dec 16, 2017 at 05:30 AM

We have a file share running as a SYMSRV symbol server. The builds run and PDB's are indexed and stored there. Builds are run as Release configuration with Full PDB.

After some quick trial and error VS is able to load the symbols correctly, but when I step into a loaded module to debug it, VS opens the "Source Not Found" window and wants me to browse for a file.

The Source Search Information box has the following.

Locating source for 'D:\agent006\_work\25\s\<branch>\<vsproj>\ConfigFileUtils.cs'. Checksum: SHA1 {91 37 22 67 e8 b9 9 5c 6 4d c3 34 34 6e 61 c4 78 bc 9d 5f}
The file 'D:\agent006\_work\25\s\<branch>\<vsproj>\ConfigFileUtils.cs' does not exist.
Looking in script documents for 'D:\agent006\_work\25\s\<branch>\<vsproj>\ConfigFileUtils.cs'...
Looking in the Edit-and-Continue directory 'E:\Project.Work\Platform\Feature\<consumingSolutionBranch>\enc_temp_folder\'...
The file with the matching checksum was not found in the Edit-and-Continue directory.
Looking in the projects for 'D:\agent006\_work\25\s\<branch>\<vsproj>\ConfigFileUtils.cs'.
The file was not found in a project.
Searching for documents embedded in the symbol file.
An embedded document was not found.
Looking for source using source server...
The debug source files settings for the active solution indicate that the debugger will not ask the user to find the file: D:\agent006\_work\25\s\<branch>\<vsproj>\ConfigFileUtils.cs.
The debugger could not locate the source file 'D:\agent006\_work\25\s\<branch>\<vsproj>\ConfigFileUtils.cs'.

When i direct symbol server diagnostic info to the output window I can see the command its trying to run that is failing
SRCSRV:  "<redacted>\TF.exe" view /version:4011 /noprompt "$/<teamproject>/<branch>/<vsproj>/ConfigFileHelpers.cs" /server:https://onpremise.ourdomain.com/tfs/DefaultCollection /console > "C:\Users\Andrew\AppData\Local\SOURCE~1\VSTFSSERVER\<teamproject>\<branch>\<vsproject>\ConfigFileHelpers.cs\4011\ConfigFileHelpers.cs" /prompt


SRCSRV: Source server cannot retrieve the source code for file 'D:\agent006\_work\25\s\<localFolder>\<vsproj>\ConfigFileHelpers.cs' in module '<vsproj>'. The system cannot find the file specified.

If I manually create the entire folder path (c:\users\andrew\appdata\local....), it is able to place the cs file and I can step through it, but this is not optimal at all. More logs attached


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK