Closed jairbubbles closed 7 years ago
Thanks, that was fast!
The only thing I am missing is the option that can be added to the msbuild task as well. Maybe @AArnott can give some hints about that one.
Should we add a new option or reserve this mode only for native pdbs? If it's not useful for managed pdbs maybe we should not expose it and keep it internal. GitLink is simple and that's what I like about it.
I think it can be added here:
https://github.com/GitTools/GitLink/blob/develop/src/GitLinkTask/GitLink.targets#L9
Can we auto-detect native pdb? If so, we can auto-pass in the right value there (but keep it overridable if users want to). That way we still keep it simple for starters but allows for maximum flexibility.
Looks great!
I can remove the WIP from the title now I think :)
1 last thing that needs updating is the readme (where we explain the feature). Then it's all ready to be merged.
Ok do you want me to check for native pdb detection in another merge request?
Ok do you want me to check for native pdb detection in another merge request?
If you know how to do that now, then it can be included in this one. If you need to investigate, we can do it in a new PR.
Yes I do have to investigate as I'm not a PDB expert :wink:
Looks great, thanks for all the efforts. I can merge this one if you are ready for it.
Just let me check that symbols are correctly retrieved from GitHub when debugging in Visual Studio.
It works! (At least with that trivial example)
If I rename my file locally the source file gets downloaded from GitHub and put into cache:
Nice, well done :) So I can start merging?
Yep 😄
(It seems that if you call multiple times GitLink on a same pdb the source information gets duplicated and Visual Studio does not seem to like it)
It seems that if you call multiple times GitLink on a same pdb the source information gets duplicated and Visual Studio does not seem to like it
That's something we might need to look into for a future version as well.
It allows to properly index sources for native Pdbs
A few remarks:
On a simple cpp project, source information looks like this:
Which seems ok. (I didn't test in Visual Studio if symbols are correctly retrieved yet).
Fixes #166