Mac is not supported by the current CB 20.03 or nightly release with being able to debug your compiled code via the debugger, so unfortunately if you want to debug please try codelite.
There are pages on the web that have info on how to run copdeblocks on a mac, but these only show you how to get codeblocks running and able to run your app, but not debug it.