-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Do PDB Sources need Changed for this to work? #2
Comments
Hi, sorry for the late reply. Just changed jobs and been quite busy. Just a disclaimer; I dont use symbol servers for SoureLink .net apps, but for C++ applications. So, there are two different things in play here; source servers and symbols servers. When you point VS to a symbol server, it knows how to locate the relevant symbols from this it. But the symbols themselves have embedded URLs for the sources, so then VS try to find the sources from these URLs. So before you store your symbols into the symbols server, you must index the symbol files, I believe the tool to do that is pdbstr. You must indeed embed the correct (gitlab rewrittee) URLs for VS to find the sources automagically. |
Ok that makes sense. Glad you could confirm. Much appreciated @juangburgos! |
One more question, @juangburgos. When re-writing the URL in the PDBs it looks like they need to follow pattern you have listed ( |
The following comes from my personal notes, hope it helps: Source IndexingSome Windows Debug Tools, such as pdbstr -w -p:${syms_file} -i:${index_file} -s:srcsrv where,
After the symbol file has been indexed, the index can be read with a similar command using the pdbstr -r -p:${syms_file} -s:srcsrv The (user defined) index file is simply a text file with the following format:
where,
Note that the To create the index file, the challenge is to list all the files used by a given binary, for this, the NOTE : The |
Thank you @juangburgos this is very helpful! Much appreciated. |
Thanks for putting together this workaround. It's really frustrating GitLab isn't addressing SourceLink support. Anyway, trying to get this working and had a question. So we have setup the re-writer on a different sub-domain of our gitlab instance. That said since VS uses the git info to pull the url it never goes to the URL which would get re-written. Do you do something in order to point the PDB sources to the URL that the Rewriter is listening on? For example in the readme you use...
https://example.com/token/.....
is rewritten to
https://gitlab.com/api/v4/.....
Wouldn't the PDB Sources need to have
https://example.com
in them instead ofhttps://gitlab.com
in order for this to work correctly?I'm sure I'm missing something obvious here but have been banging my head on this for some time so hoping to get pointed in the right direction.
Thanks!
The text was updated successfully, but these errors were encountered: