Problems with debugging Unreal Engine in Qt Creator

Problems with debugging Unreal Engine in Qt Creator

@scapior

On a long time I want to migrate to Linux and kick Windows from my workflow.
One of the most important things in development is debugging.

For MSVS the Unreal provides the natvis file - a file describes how to visualize UE containers and types in debug widgets (i.e. show FString's and FName's as text strings, show containers as a set of elements, etc).

Qt Creator, which I'm using on Linux, using own format with the same functionality - debug helpers. And UE provides this file.

The problem is in the fact that the debug helpers do not work properly. Screenshot of this:

Example of debugging session

According to pic above we can't see elements of TArray, only raw pointer, the size and capacity. I checked the debug helper file history - last change in 2018 (my work project UE version - 4.23).

Early, while I'm researching how to set up the UE project in Qt Creator, I found this post, whose author - Phillip Baxter - made this pull request to the UE repository on the GitHub. It was 2018...
Some later, I found this pull request from the same author, where he made the other fix and reminded to Epic team to review the previous request. It was September of 2019.

I tried the debug helper version of Phillip (merged his pull requests to one file) and it works for all types except FName.

So, after that I checked the debug helper in the actual branch - 4.25. And yeah, he's was changed a few months ago! And this file don't work...

Result of this small research: Qt Creator & Linux workflow is not suitable for Unreal Engine, at least while you not write completely covering UE types debug helper.

Report Page