FFrame C++ Get StackTrace

How do I get StackTrace() to the place where the method was called. I can’t find anything about how to achieve this. All the examples I found on the Internet are not working.

The task is to get the history of the branch from where N method was called.

An example of what I want to achieve:
class FMyCustomClass
{
public:
void MyMethod()
{
Call StackTrace()
// This is where I want to get information about where the method was created from
}

}

Hi there @Hummer4x41. Hope you’re well!

This topic has been moved from International to Programming & Scripting: C++.

When posting, please review the categories to ensure your topic is posted in the most relevant space.

Hopefully, this category change will help in finding an answer. In the meantime, good luck and happy developing! :slight_smile:

Hey there @Hummer4x41! This is actually a great question that I’m not sure of myself. Looking into this thread there are a couple of leads mostly pertaining to dumping the stack to the log:

Yes, I saw this topic on the forum, but there is no answer. Even stack to log, doesn’t output necessary information or returns empty stack at all. But first of all I need to get stack in explicit form so that I could form it and work with it as a separate data.