Linking Vault as Source Server to re-indexed .PDB files
Moderator: SourceGear
Linking Vault as Source Server to re-indexed .PDB files
Hi,
I was wondering if anyone has ever linked Vault as a Source Server to re-indexed .PDB files, so that when debugging in Visual Studio, the exact source version can be retrieved from the relavant repository? I have been looing at the Microsoft Debugging tools and there is some support for VSS, Team FS, Perforce and SVN but the scripts are written in Perl and my skills in this field do not exist!
You use srctool.exe to achieve this functionality when re-indexing the source reference stored in the .PDB files. If I can't link Vault directly, I will need to look at providing the source via HTTP or UNC network share, so the similar functionality can be achieved. I didn't want to store the source twice though if it can be pulled out of Vault directly. That would be really nice.
Thanks if anyone can help.
Tim
I was wondering if anyone has ever linked Vault as a Source Server to re-indexed .PDB files, so that when debugging in Visual Studio, the exact source version can be retrieved from the relavant repository? I have been looing at the Microsoft Debugging tools and there is some support for VSS, Team FS, Perforce and SVN but the scripts are written in Perl and my skills in this field do not exist!
You use srctool.exe to achieve this functionality when re-indexing the source reference stored in the .PDB files. If I can't link Vault directly, I will need to look at providing the source via HTTP or UNC network share, so the similar functionality can be achieved. I didn't want to store the source twice though if it can be pulled out of Vault directly. That would be really nice.
Thanks if anyone can help.
Tim
Re: Linking Vault as Source Server to re-indexed .PDB files
I can safely say that this has never come up. I don't know of any reason it won't work, though. You should look at our API forum for examples of using the Vault client integration library, or look at using the vault command line client.
Subscribe to the Fortress/Vault blog
Re: Linking Vault as Source Server to re-indexed .PDB files
Sadly Perl is not my bag so I'm a bit lost with it all at the moment.
Does anyone at Sourcegear know Perl who might be up for a challenge? I'm sure it would really add some kudos as another one of your developer tools
As it stands, I think I am going to try and configure a Subversion repository for specific source files and index that way.
I have used the Vault API in some small integration tasks for the company I work for; what would be the command line required to get a file from vault, specifying a label?
Also, is there any way you can browse Vault repositories over HTTP?
Thanks for your help.
Does anyone at Sourcegear know Perl who might be up for a challenge? I'm sure it would really add some kudos as another one of your developer tools
As it stands, I think I am going to try and configure a Subversion repository for specific source files and index that way.
I have used the Vault API in some small integration tasks for the company I work for; what would be the command line required to get a file from vault, specifying a label?
Also, is there any way you can browse Vault repositories over HTTP?
Thanks for your help.
Re: Linking Vault as Source Server to re-indexed .PDB files
The command you want is GetLabel.
All of our command-line client documentation is posted here: CLC Documentation.
Also, you can browse the repository by going to the web client at http://<your Vault server>/vaultservice/vaultweb.
All of our command-line client documentation is posted here: CLC Documentation.
Also, you can browse the repository by going to the web client at http://<your Vault server>/vaultservice/vaultweb.
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: Linking Vault as Source Server to re-indexed .PDB files
Hi Beth,
Thanks for the reply. I got the getlabel stuff working and it is retrieving the files but visual studio still thinks there has been a problem.
Is there anyway to prevent the vault.exe command line from printing the XML response after the getlabel operation?
Also, can you use the web interface to view files by label or is it just file version?
Many thanks,
Tim
Thanks for the reply. I got the getlabel stuff working and it is retrieving the files but visual studio still thinks there has been a problem.
Is there anyway to prevent the vault.exe command line from printing the XML response after the getlabel operation?
Also, can you use the web interface to view files by label or is it just file version?
Many thanks,
Tim
Re: Linking Vault as Source Server to re-indexed .PDB files
You might try redirecting the output to a dummy file.
The web client only allows by file version.
The web client only allows by file version.
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: Linking Vault as Source Server to re-indexed .PDB files
Thanks Beth. That wasn't the problem in the end. The vault command line gets the file to a folder instead of a direct path including filename. The srcsvr functionality in visual studio was putting in the full path so it was creating one too many folders and then it couldn't find the file it downloaded.
All sorted now and working like a treat!!
All sorted now and working like a treat!!
Re: Linking Vault as Source Server to re-indexed .PDB files
Thanks for the update.
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: Linking Vault as Source Server to re-indexed .PDB files
Tim,
Any chance of you sharing your Perl Script either here, or at least back to the guys at Source Gear so that they might be able to provide something similar in the future.
(I assume you are the same Tim that was asking similar questions on StackOverflow - sorry to be hassling you from multiple angles but I'm keen to get this working in our environment)
Cheers,
Scott
Any chance of you sharing your Perl Script either here, or at least back to the guys at Source Gear so that they might be able to provide something similar in the future.
(I assume you are the same Tim that was asking similar questions on StackOverflow - sorry to be hassling you from multiple angles but I'm keen to get this working in our environment)
Cheers,
Scott
Re: Linking Vault as Source Server to re-indexed .PDB files
If you don't hear back from the user, you might consider trying the email function on the board to see if that will reach him. He might have unsubscribed from this thread already, but an email through the forum should notify him I think.
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: Linking Vault as Source Server to re-indexed .PDB files
We're also thinking about using a source server with Vault.
Is there someone with a working setup wo want to share tips and/or scripts?
Is there someone with a working setup wo want to share tips and/or scripts?
Re: Linking Vault as Source Server to re-indexed .PDB files
The users you were discussing this earlier in this thread appear to have posted some code here that may help you: http://stackoverflow.com/questions/6946 ... with-srcto.
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support