Download

Can't debug - Plugin module missing from Visual Studio modules window

I am using Visual Studio 2017 with vanilla UE 4.23.1 to create a c++ project plugin. When I started the plugin I could attach to the UE4 process and debug my plugin in visual studio, as I usually do.
However at some point it stopped working. It’s not just that it can’t find the debug symbols, it doesn’t load the module into the debugger at all. The module is missing from the Debug -> Modules window.
I’ve tried wiping out all the intermediate, saved, binaries, etc. of both the project and the plugin and regenerating the solution file, but to no avail.

Any suggestions?

There is a registry key controlling the number of debugger messages a debugger can see. When you increase the value to e.g. 2048 you can see all loaded dlls.
Here is the relevant key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager
DWORD DebuggerMaxModuleMsgs = e.g. 2048