xcode - "Line by line" debug with custom Makefile -


i working xcode , c project developed in linux. thing has custom makefiles had create new target specifying external build system, , when run project outputs bin file, no matter if there breakpoints. program run within xcode can debug (line line).

the "main" makefile is:

all:     $(make) -c src     mkdir -p bin     mv src/program bin/program  debug:     $(make) -c src debug     mkdir -p bin     mv src/program bin/program  clean:     $(make) -c src clean     rm -f bin/program 

and in src folder makefile:

src=[whatever]  obj=$(src:.c=.o)  cc=gcc rm=rm -f  cflags=[whatever] ldflags=[whatever]  %.o : %.c     $(cc) $(cflags) -c $<  : program  program : $(obj)     $(cc) $(obj) -o program $(ldflags)  debug : cflags += -ddebug -ggdb debug : program  clean :     $(rm) *.o program 

(the [whatever]'s added me). question is: should (modify makefiles,...) can debug program breakpoints , line line xcode?


Comments

Popular posts from this blog

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

javascript - Handling constructor related functions while testing with mocha and sinon -