I really need to use the debugger in Xcode but I can't get to make this work. I use the terminal on Mac, to compile a file, which I usually just change the directory and then I have .sh file and I write that down and everything compile, note this is what is in .sh file :
#!/bin/bash
clear
echo "cleaning directory"
rm mag_test.out
echo "Compiling mag_cal_driver.c"
g++ -o mag_test.out mag_cal_driver.c ../src/mag_utils.c
echo -e "Running magnetometer tests\n"
./mag_test.out
how can I achieve this in Xcode ???? note the code is in c! enter image description here