How to handle runtime errors


Everytime that I have a bug the editor crash. After some search I understand why that happens Reddit link . So, I decided to execute my project in Standalone mode. With that the editor don’t crash but I can’t figure out where the problem is. After another search of how handle errors I’ve found that I can use Assertions to check and print any error to the Output log. But after some test with the assertions I notice that this code doesn’t work for me.

UDoorOpen* ad = nullptr;
check(ad == nullptr && "FOO");
check(ad != nullptr && "FOO2");

Hope that anyone can tell me what I’m doing wrong.