Incorrect debug symbols, and breakpoints.
I am constantly running into a problem while debugging c++ code where attaching to UE4-Editor process during debug will load the symbols, but will load incorrect symbols.
So when I step through my code, and decide to "step in" to the call - it steps into an old call
rotateToTarget will step into SetActorRotation (which was the old call).
I have deleted Saved and Intermediary directories, recompiled the project with Debug Game Editor, and am still getting this behavior during debug.
What can I do to get debugging working correctly?
asked Aug 27 '16 at 06:19 PM in C++ Programming
In addition to deleting the "Intermediate" and "Saved" directories, you'll want to delete the "Binaries" directory as well. That folder will contain your build results, such as the executables, dlls, and debugging symbols.
Finally, have you verified that your build can successfully compile? If Visual Studio is set to run the last successful build (regardless if the latest build succeeds), you can run into issues where your program execution does not match your source code. This makes breakpoints and stepping rather confusing. To further verify this, I'd add some code elsewhere and see if the debugger behaves as expected by stepping through the newly added statements.
If all else fails, I'd probably try deleting everything except for the following...
Everything else can be reconstructed from the above four things. My team only keeps the above four on source control, in addition to the editor dlls in the "Binaries" folder to avoid obligating artists to install VS2015.
answered Aug 27 '16 at 06:42 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here