Increase the Number of Modules Loaded When Attaching the Debugger

Increase the Number of Modules Loaded When Attaching the Debugger

Article written by Martin S

Debuggers on Windows are limited to loading the symbols for 500 modules when attaching to a running process. Unreal based projects can have more than that limit depending on the version and the plugin configuration.

The problem usually manifests by not being able to add breakpoints to project or engine code after attaching

It is possible to increase the limit by adding the following registry key and rebooting the PC:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager

DWORD DebuggerMaxModuleMsgs = 2048

This article from Microsoft explains how a .reg file can be created for easier distribution across a team.

Get more answers on the Knowledge Base!

9 Likes

wow, Finally I found solution, Thanks a Lot !

Thank you very much. Your reply solved the problem. This was one of the worst problems in my development life that was very difficult to determine the cause.