Unreal Engine project is missing natvis for STL

In an Unreal project, I'm dealing with some third-party code that uses the STL, and it doesn't display correctly in the debugger. For example, in `std::vector` all I can see are its 3 pointer fields.

For full context, the project is configured to use Unreal 5.3's own MSBuild, C:\Program Files\Epic Games\UE_5.3\Engine\Binaries\ThirdParty\DotNet\6.0.302\windows\sdk\6.0.302\MSBuild.dll, and I do not see any `stl.natvis` in this folder. I do already have Visual Studio installed, Professional 2022.

0
1 comment

Hello William Manning,

This is a known issue RIDER-84544. As a workaround, you can copy stl.natvis bundled with VS ({VS install directory}\Common7\Packages\Debugger\Visualizers) or from GitHub and place it under {UE installation directory}\Engine\Extras\VisualStudioDebugging.

You can also put stl.natvis in any directory (any directory included in the project in Rider's Explorer window) of a module you are working with and restart Rider. However, this approach might not work depending on the structure of the third-party module.

Please let me know if it helps.

1

Please sign in to leave a comment.