Xcode创建c语言方案及调试

create C profuct

1.file-new-project
2.OS X-Application-command line tool-(next)
3.fill the ‘product name’ and select C from the ‘language’,and fill the rest depend on your mood, then ‘next’.
4.select the path to save your product.
5.open the ‘main.c’ on the left, then write code on the right.
6.click in the triangle icon on the top left corner to ‘run’ your product.

debug

1.click on the linenum to set the breakpoint.
2.‘command+R’ to run the product.
3.
click this icon to debug在这里插入图片描述
click on this icon to debug

你可能感兴趣的:(笔记)