Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    progetvisual-studiosource
    4 Posts 1 Posters 22 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        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
          
        (...)
        
        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          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?

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            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.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better đŸ’—

            Register Login
            • 1 / 1
            • First post
              Last post
            Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation