Why stack trace after crash doesnt include my code

When editor crashes and I get a stack trace it contains all internal UE code, but not the code made by me. Is there any way to change that?

Example stack trace:

UE4Editor_Medium_8100
UE4Editor_Medium_8100
UE4Editor_Engine!AActor::TickActor() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\engine\private\actor.cpp:670]
UE4Editor_Engine!FActorTickFunction::ExecuteTick() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\engine\private\actor.cpp:105]
UE4Editor_Engine!FTickTaskSequencer::FTickFunctionTask::DoTask() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\engine\private\ticktaskmanager.cpp:113]
(...)

There should be two methods in place of UE4Editor_Medium_8100 from AMediumCharacter class that inherits from ACharacter

Hello, dex3r

Please note that in order to debug the Editor build of your project, you should open it in Visual Studio, select Development Editor in Solution Configurations and start debugging.

Thus, if an error occurs, you’ll be able to investigate its cause.

Hope this helped!

Have a great day!

Ok, thank you for the answer. I know i can attach the debugger and catch an error/exception. But is there anyway to dump stacktrace from my code to UE4 crash window?

Nope. That’s the VS job.
Sometimes it will happen automatically, but not always.