Can't debug own project in Visual Studio

Hello,

I’ve got a project with a c++ codebase. I use VS 2015 for development.

When I debug and put breakpoints in my project’s code, VS shows that the files with breakpoints (my project’s sources) never get loaded.

When things crash during debug, UE gives me stack trace of the error in the VS, where engine’s sources are seen and traced well, but the project’s codebase is grayed out and omitted in the trace, clearly showing that VS treats it as an external DLL with no loaded debug symbols.

What could be an issue here? I have previously debugged several UE projects in VS, and never faced this kind of behavior previously.

Update:
Ok I found something in the debug log and it’s very weird. Looks like it tries to load the symbols from the mysterious D:0 drive for some reason (my project is on G:)

Did you ever figure out what was causing this?

No, but I found a ■■■■■■ solution which nevertheless works. You can manually add your debug symbols into the Visual Studio debug symbols list:

Aye, I discovered that you can also manually find and set the paths via Debug->Windows->Modules. In the modules tab it’ll list all of the loaded modules and tell you whether symbols have been loaded. If they haven’t, you can right-click and select ‘Load Symbols’ to specify the correct directory.

Wish I knew what caused this to start happening in the first place though, this isn’t much of a fix because I assume it’ll have to be done again whenever you generate your solution…

Edit: For the record I’m seeing this happen in both 2015 and 2017. Tried with both, then uninstalled both and all versions of UE4, reinstalled UE4 and vs2017, and was still seeing it.