Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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

For instance:

 float ATurretBase::track(float delta) {

     bool found;
     auto loc = getTargetWorldPosition(found);

     if (found) {
         GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, loc.ToString());

     auto rot = FMath::RInterpTo(GetActorRotation(), getTargetLookAtRot(loc), delta, .5);


     return 0;

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?

Product Version: UE 4.12
more ▼

asked Aug 27 '16 at 06:19 PM in C++ Programming

avatar image

229 16 29 36

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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...

  • Config

  • Content

  • Source

  • Project.uproject

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.

more ▼

answered Aug 27 '16 at 06:42 PM

avatar image

51 2 3 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question