Visual Studio debugger behaving strangely

Inside engine VS fails to show pointer content - as if it does not know anything about this type

287849-image.png

Meanwhile in some other places it works as expected

287848-image-1.png

I tries Debug build - result is the same
With launcher build I didn’t notice anithing like this
Does anyone know how to fix it?

You mean the pointer in debugger doesn’t have drop down arrow?

I would do a clean rebuild and load engine symbols when debugging. that should work and give debugger needed information.

This was the first thing I tryed. It didn’t worked

Looks like VS2019 bug
My post Visual Studio Feedback

Same problem here!
some symbols display normally, but some others do not. Even they are in the same dll, pdb.

For attached image, AGameModeBase can’t see the content on the watch window, but AGameMode can see it.

  • Visual Studio Professional 2019, Version 16.2.3
  • Unreal Engine 4.23.0, source code from Epic Perforce, stream Release-Lastest-Minimal
  • Build configuration DebugEditor Win64

Please note that UE4 is built with msvc toolsset from VS 2017, therefore the the symbols do not match your msvc version meaning some of the information could be incorrect, or missing.

To fix the issue either use msvc toolset from VS2017 or build the engine from source with VS 2019.

oh! thanks!

unreal engine is clean and build with full source code with visual studio 2019

3>Using Visual Studio 2019 14.22.27905 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905) and Windows 10.0.17763.0 SDK (C:\Program Files (x86)\Windows Kits\10).
3>Distributing 3275 actions to XGE
3>--------------------Project: Default-------------------------------------------
3>** For UE4Editor-Win64-Debug **

Yes you are using latest msvc from VS 2019 obviously as you can see from the output window, but engine libraries were built with VS 2017. there is no official prebuilt engine for VS 2019. but that doesn’t mean you can’t use VS 2019 with the built libs. symbols will in 95% of cases work just fine.