How to debug console program in XCode

I’m trying to write a new console program using XCode and I can’t run it as XCode is looking for a .app product to run. I tried telling it to run the console program but that just crashed XCode when it tried to run/debug the binary.

My program for some reason is crashing and log statement to trace the flow are not helping.

So how do you(Epic) debug new programs that are console ones.

When my program crashes it sometime complains about pure virtual method called. Looking at the crash log it looks like it might be in the UE_LOG method but I do get logs so might be something like a module not getting linked in.