Debugging "external build system" targets

I've successfully got Xcode to run my external build system and successfully create a MacOS executable. I've pointed Xcode to the target executable in Product/Scheme/Edit Scheme.../Executable. This enables me to Run it, but how do I step through it instead of running it?


Secondary question: under certain conditions, the external build system may indicate failure but still create the executable. Ideally I'd like to be able to step through the executable even though Xcode was told that the build step has failed. How do I do this?

Debugging "external build system" targets
 
 
Q