The icon in Xcode says "Build and Run". How do I change it to "Build and Debug"
I read that if you use "Build and Run" then it does extra work to optimize the code.
The icon in Xcode says "Build and Run". How do I change it to "Build and Debug"
I read that if you use "Build and Run" then it does extra work to optimize the code.
You need to add breakpoints to your code to change the icon for debugging
Option-click the Build and Run
button and you'll have the Build and Debug
button until you option-click again to change it back to Build and Run
.
"I read that if you use "Build and Run" then it does extra work to optimize the code."
No - this is completely wrong - Release builds typically have optimisation enabled and Debug builds don't. This has nothing to do with how you run the program (i.e. Run vs Debug), it just depends on which configuration you are building.