Stepping through code in Visual Studio not flowing correctly

Hi,

When I step through the UE source from VS debugger it does not follow the code correctly, the current line jumps back up a few lines to previous code multiple times and I cannot step into methods from the current line. Also, all local variables are optimised out so I cannot view them (can kind of understand that one though).

Is there any solution to this?

Thanks,

Richard.

Which configuration are you using? It sounds like one of the Development ones.

For the editor:

  • Development Editor - Optimised for both the engine/editor and your game code.
  • DebugGame Editor - Optimised for the engine/editor, debug for your game code.
  • Debug Editor - Debug for both the engine/editor and your game code.

For the engine/game:

  • Development - Optimised for both the engine and your game code.
  • DebugGame - Optimised for the engine, debug for your game code.
  • Debug - Debug for both the engine and your game code.

Hi Jamie,

Thanks for your response.

I’ve been experiencing the problem with both “Development Editor” and “DebugGame”. I haven’t tried the other configurations.

Thanks,

Richard.

Yeah, that’s the behaviour I’d expect to see when using those configurations.

If you find yourself needing to actively debug engine/editor code and come across missing symbols or weird program flow, it’s probably best to switch to a Debug Editor or Debug (depending on whether you’re using the editor). Please note that these configurations are considerably slower than the Development ones.

Slow is ok for stepping through :slight_smile: When I try and build with those configurations I get the “UnrealLauchDaemon does not support the Win64 platform” though…

I think that’s fine. It only seems to be used for iOS.

Awesome! Thanks, yes that gets it stepping through properly and makes the variables visible.

Thanks for your help.

Richard.