-
Notifications
You must be signed in to change notification settings - Fork 676
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
Debugger doesn't find PDBs in their original built location #2483
Comments
The default search locations will be: the original location where the compiler dropped the PDB and next to the dll. If you have full Visual Studio installed with the C++ work load, there is a tool called 'dumpbin' in there that will let you see what this original directory is -- from a VS developer command prompt run I am not sure why adding the directory to |
Thanks for the reply! Interestingly looking closer at the output when I attach I see this:
I was able to fix the first issue by adjusting my search path to use As per your request I set my search path to:
But I still get the error:
Just want to note that the exact same solution, attaching the debugger works without issues and without extra configuration in VS. @gregg-miskelly |
Are you getting any other messages for test2.dll/pdb? For example, do you get the error about it being a Windows PDB? ( |
Sorry for all the spam. I found the issue. OmniSharp looks in the Anything I can do on my end to resolve this? Using (The windows PDB was unrelated, it was an old file in the wrong place) |
Hey @gregg-miskelly any update on this or if it's something I can simply create an PR for? |
@Chaosca sorry I didn't get back to you earlier. If you are still interested in looking at this - I would need the output of |
Hey @gregg-miskelly Still very much interested in helping out and can do. However I don’t believe it’s an issue of my DLL, since it works properly if I add the correct directory to If still needed I can get you that dumpbin however. |
@Chaosca Yes, the dumpbin output would be helpful. |
|
Thanks. Is |
Yes that has the correct PDB file that works properly when manually added to the search path :) |
If you leave your If that doesn't show anything - try this:
|
Nothing interesting in the debug console except for the lines I showed above how it cannot be found. I shot you an email with the log file! @gregg-miskelly |
Thanks to help from @Chaosca, I was able to find the problem. Thanks! |
Awesome! Can't wait for a fix |
Hey @gregg-miskelly anything I can do to help get this through? |
I hope to put out a new beta tomorrow that will have the fix for this. |
1.17.0-beta6 is now on the release page. Please follow these instructions to install. |
Works! Thanks again @gregg-miskelly |
Environment data
dotnet --info
output:VS Code version: Latest Stable
C# Extension version: 1.15.2
Steps to reproduce
Opening a root workspace with a .sln and a
Source/
folder. Build intoOutput/Debug
. However the launch PDB's build intoSource/PROJNAME/obj/Debug/PROJNAME.pdb
but is not detected by the extension as I believe it is looking in theOutput/Debug
folder.Expected behavior
The extension should check the directory from which the source was built.
Actual behavior
It fails to find the PDB's.
PDB can be found in:
I've tried to set the
symbolOptions
to:Without success.
The text was updated successfully, but these errors were encountered: