Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

Visual Studio does not try to get sources



  • Hello,

    I made a sample symbols package and pushed it to the ProGet server. Visual Studio is correctly configured, according to the tutorial.

    According to Fiddler, VS retrieves successfully the PDB from the server, but it does not try to get the sources. It tries to access the source locally, from where it was compiled.

    > pdbstr -r -s:srcsrv -p:NuGetProjectSample.pdb
    SRCSRV: ini ------------------------------------------------
    VERSION=2
    INDEXVERSION=2
    VERCTRL=http
    SRCSRV: variables ------------------------------------------
    SRCSRVVERCTRL=http
    PGSERVER=http://localhost:81/source-files
    PGFEED=Default
    PGPKGID=NuGetProjectSample
    PGPKGVER=1.1.0.0
    HTTP_EXTRACT_TARGET=%pgserver%/%pgfeed%/%pgpkgid%/%pgpkgver%/%var2%
    SRCSRVTRG=%http_extract_target%
    SRCSRVCMD=
    SRCSRV: source files ---------------------------------------
    d:\users\gservera\documents\visual studio 2013\projects\nugetprojectsample\nugetprojectsample\sample.cs*Sample.cs
    SRCSRV: end ------------------------------------------------
    

    Product: ProGet
    Version: 4.0.9



  • Hello,

    Using DIA2Dump on my PDB, the local source path is dumped.

    > Dia2Dump.exe C:\NuGetProjectSample.pdb
    
    
    *** MODULES
    
    0001 NuGetProjectSample.Sample
    
    (...)
    
    *** FILES
    
    
    Compiland = NuGetProjectSample.Sample
    
            d:\Users\gservera\Documents\Visual Studio 2013\Projects\NuGetProjectSample\NuGetProjectSample\Sample.cs
    
    
    
    *** LINES
    
    
    ** DoStuff
    
            line 13 at [00000000][0001:00000000], len = 0xA d:\Users\gservera\Documents\Visual Studio 2013\Projects\NuGetProjectSample\NuGetProjectSample\Sample.cs
            line 14 at [0000000A][0001:0000000A], len = 0x1
    
    ** GenerateException
    
            line 18 at [0000000B][0001:0000000B], len = 0x6 d:\Users\gservera\Documents\Visual Studio 2013\Projects\NuGetProjectSample\NuGetProjectSample\Sample.cs
            line 19 at [00000011][0001:00000011], len = 0x1
    
    ** DoException
    
            line 23 at [00000012][0001:00000012], len = 0xB d:\Users\gservera\Documents\Visual Studio 2013\Projects\NuGetProjectSample\NuGetProjectSample\Sample.cs
    
    
    
    *** SECTION CONTRIBUTION
    
        RVA        Address       Size    Module
      00000000  0001:00000000  0000000B  NuGetProjectSample.Sample
      0000000B  0001:0000000B  00000007  NuGetProjectSample.Sample
      00000012  0001:00000012  0000000B  NuGetProjectSample.Sample
      
    (...)


  • Hmm... not sure why it's doing that - it should resolve the paths as you would expect.

    Can you send us (support at inedo) this example NuGet package to see if we can repro, or post a link to download it here?



  • By default, Visual Studio 2012 and later does not use the source server even if the PDBs contain the correct source indexing information. To enable the source server, go to Tools > Options, Debugging, General and check "Enable source server support".

    This is disabled by default as it's a security risk. The mechanism for the source server encodes a command to execute into the PDB file, therefore untrusted PDB files could execute arbitrary code. Users have to opt in.

    See "Use Source Servers" in Specify Symbol (.pdb) and Source Files in the Visual Studio Debugger for more information.



Inedo Website HomeSupport HomeCode of ConductForums GuideDocumentation