I am still struggling to figure out how to get debugging working with UE4 C++. I have tried running the editor with the -debug flag, but it doesn’t seem to change anything. When I use the editor to compile, the output seems to indicate it is creating a development build, and if I attach the debugger to the editor process and set a breakpoint, some of my local variables are optimized out, making it difficult to step through the code and figure out what’s happening. I can set Visual Studio’s build configuration to Debug Game and build the game project, but the editor doesn’t load that version of the game project. Does the -debug switch actually do anything? What do I need to do to get a debuggable (non-optimized) version of my game classes to work with the editor?
(I also posted this question on AnswerHub a couple of days ago – I wasn’t sure whether it was better to post questions there or here).