I'm using Visual Studio 2019 Community Edition (Version 16.3.7), .NET Framework 4.5 and C#. Trying to attach to process in debugging mode, but having a long "Loading symbols for systemDllName from: Microsoft Symbol Server" process, something like 5-7 minutes. As a result, I can't attach to windows process and debug.
After some investigation, I've found out that MyProject.exe module has Symbol Status "Binary was not built with debug information". I tried to find similar issues here, but they didn't help, list of similar issues:
- Binary was not built with debug information
- My own binary in debug mode "Binary was not built with debug information"
- How do I remedy the "The breakpoint will not currently be hit. No symbols have been loaded for this document." warning?
- Visual Studio loading symbols (tried to figure out with symbolic problem)
Also I tried to check manually all csproj files to write in "Debug" mode building and it didn't help. I tried to do all basic stuff as clean solution/delete all breakpoints/check and uncheck "Only my code" in debug settings and it didn't help.
Interesting fact: sometimes debugger works correctly and I don't have any issues at all. For example, I had rebooted the OS and it helped, but sometimes it doesn't help.
The main problem: I don't know what exactly goes wrong (pdb.files loading? loading from MS server? some problems with building? etc) and why sometimes it works correctly?
Some examples: Loading symbols for 5-7 minutes Module window. Guys, sorry for that terrible censorship :)