1

Topic: How to replace a site of source codes?

In article about that as the debugger searches for source codes is written: The source information of the.pdb of the module. This can be the location of the source file when the module was built, or it can be a command to a source server. That is, somewhere in a.pdb-file there are ways to files with initial texts. A question: how to replace ways which were at the assembly on others? (The assembly happens in a temporal directory, and files is long-term are stored in another ...) It would be desirable the utility - to it on an input an old.pdb-file and a new way, it on an output forms new.pdb a file with such way.

2

Re: How to replace a site of source codes?

Hello, Ejnstok Fajr, you wrote: > It would be desirable the utility - to it on an input an old.pdb-file and a new way, it on an output forms new.pdb a file with such way. So do https://github.com/Microsoft/microsoft-pdb https://blogs.msdn.microsoft.com/vcblog … a-pdb-file https://msdn.microsoft.com/ru-ru/library/hd8h6f46.aspx https://www.codeproject.com/Articles/37 … Database-P http://pdbdump.sourceforge.net/

3

Re: How to replace a site of source codes?

_> So do I do not want so. To me something controlled, for example on the basis of Mono. Cecil. Pdb: https://github.com/jbevain/cecil/tree/m … ymbols/pdb https://github.com/jbevain/cecil/wiki/Debug-symbols https://stackoverflow.com/questions/906 … file-match with it not all thank God: you need to run on windows to emit pdb files. Native API too uses COM: http://ccimetadata.codeplex.com/SourceC … /Writer.cs https://github.com/dotnet/symreader/tre … aSymReader write: http://www.instinctools.eu/blog/microso … -a-service that something such should be in roslyn: Creating a new implementation of PDB Writer with big parallelism when writing text to a PDB file; Extract Native PDB writer to Microsoft. DiaSymReader http://source.roslyn.io/#Microsoft.Code … ablePdb.cs https://github.com/dotnet/corefx/blob/m … etadata.md whence, for example, to take Factory https://github.com/dotnet/roslyn/blob/m … ter.cs#L62 that the managed code was engaged in record? Or it should not be used, and it is necessary to use https://github.com/dotnet/roslyn/blob/m … ablePdb.cs I do not want to spend couple of months to make most, thought that there is a ready utility of type GREP...

4

Re: How to replace a site of source codes?

Hello, Ejnstok Fajr, you wrote: > That is, somewhere in a.pdb-file there are ways to files with initial texts. > (the Assembly happens in a temporal directory, and files it is long-term are stored in another ...) If started such to be engaged, think over a raising own Symbol Server-a, inside pdb not only  on source codes, but also on audit it is possible to store, on an extreme measure for tfs it is implemented. And under pdb it will be extorted source codes of the necessary audit.

5

Re: How to replace a site of source codes?

Hello, Ejnstok Fajr, you wrote: > In article about that as the debugger searches for source codes is written: > The source information of the.pdb of the module. This can be the location of the source file when the module was built, or it can be a command to a source server. > That is, somewhere in a.pdb-file there are ways to files with initial texts. > the Question: how to replace ways which were at the assembly on others? The most simple method - before attachem/opening  to open  from any place. Source codes it is more  on names of files and  so studio it takes quiet source codes from , despite other folder. Other method - at debugging once to specify a source code from other folder, within the limits of the same session it remembers a new folder. But if  branchy on folders, it is a lot of fuss. The most advanced method - to adjust symbol server, and, on top it, still source server. Then the necessary source codes are tightened directly from the monitoring system of versions.