none
srctool reports No source information in pdb for static library RRS feed

  • Question

  • I am trying to set up source indexing on the pdbs our team publishes to our internal Symbol Server.  We have a shared build process which builds and publishes static libraries that are used in several internal projects.  I would like to ensure the .pdb files are indexed with references to our internal source code repository (svn).

    Most of the tools and examples out there appear to depend on raw absolute paths of source files built into the binary already being present in the .pdb file, which the tools then augment to additionally contain the relative path into source control.

    However I'm finding that the .pdb files for my static libraries do not appear to have the raw source absolute path information.  If I run srctool -r on the pdb I get, e.g.:

    No source information in pdb for murcrc.pdb.

    If I build a executable, then srctool -r shows me the expected list of absolute pathnames.


    I see others have faced similar issues before:


    https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/c40e9ea6-b5fa-45bd-924c-1e5867cdd6d9/static-libraries-while-using-sourcesymbol-server-error?forum=tfsbuild "Static Libraries while using Source/Symbol server Error"

    https://social.msdn.microsoft.com/Forums/en-US/8cb3e2bd-cdc4-47c4-8fc8-dbb47d035425/source-indexing-static-libraries-not-supported?forum=tfsbuild "Source indexing static libraries not supported?"

    https://stackoverflow.com/questions/1192617/can-source-server-debugging-tools-for-windows-be-used-with-static-library-proj "Can source server (Debugging Tools for Windows) be used with static library projects?"


    but I didn't see any satisfactory resolutions in the responses.


    Should I expect srctool -r to return absoluate paths for the pdb of a static lib?



    Friday, July 26, 2019 3:32 PM

All replies

  • Hi friend,

    Sorry for delay in reply.

    According to your description, please have a try to use absolute path, and refer more from here :

    Symbol Problems While Debugging and add source index to symbol files

    BTW, since our forum is about VS Debugger, and we recommend you could redirect to stack overflow with srcsrv tag for better support.

    Best Regards,

    Dylan


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Monday, July 29, 2019 6:21 AM
  • Hi Dylan, thanks for your reply.  However neither of your links address the issue I raised, which is that srctool -r does not appear to return any source file info (relative or absolute paths) for static libraries.
    Monday, August 19, 2019 9:00 PM