-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request - Embed source in PDB #5397
Comments
/cc @tmat |
I presume PPDB support would also be desirable? |
For my particular scenario it doesn't matter but it is easy to imagine other potential consumers of the feature would enjoy PPDB support. I am working with the build process for .Net Native, the PDB produced by csc will consumed by the NUTC compiler and transformed into a C++ style PDB before the build is complete (I would do work to ensure the source information in the csc produced PDB was transferred to the NUTC produced PDB as we do with other PDB data). |
this would be a great feature to add, if not to the compiler at least open the hook to do it publically without messing with internals. |
As discussed with @tmat and others, I will be looking at this. Self-assigning. |
I've cherry-picked @noahfalk's prototype and will build from there: master...nguerrera:embed-source-in-pdb |
#12625 tracks design proposal for this. |
Closing as #13707 tracks the only remaining work (Windows PDB support). Full support for this in VB and C# for portable PDBs is in. |
The PDB format has long had the capability to include the full text of source files, but most compilers have not made use of it. I would like to add an optional command line argument to the compiler to use this PDB feature.
Including the source gives the developer a way to transmit his code to anyone debugging it without requiring auxiliary mechanisms such as source control servers or saving source files on known file shares. Although it makes the PDB larger, in some cases this size gain might be preferable to overhead configuring those alternate mechanisms. Here are a few cases I imagine it might be useful:
From my quick experiments, the work to enable such a feature is not very much. This is a simple prototype I've been working on to get a quick idea of the scope:
noahfalk@e4e20bf
To the best of my knowledge Visual Studio Debugger doesn't currently automatically use source embedded in PDBs, but I would collaborate with both teams to enable the debugging experience together with the compiler experience.
Please let me know what are the useful next steps. Thanks!
The text was updated successfully, but these errors were encountered: