Codeblocks的断点调试步骤【转载】⾸先,新建⼀个C/C++的codeblocks项⽬。具体步骤如下:
1. 新建⼀个⼯程(project),注意路径中不要包含中⽂,否则后⾯断点调试时会出现问题
2. 直接选择空⼯程
3. 选择C或者C++项⽬即可
4. 点开⼯作空间(workspace)中的Source⽂件夹,即可对⽂件进⾏编辑
断点调试术语
1. 设置/取消断点:快捷键F5,或者点击“Debug”下拉框中的“Toggle breakpoint”codeblocks带编译器版本
2. 开始调试/执⾏到下⼀断点(Debug/continue):快捷键F8,或者点击“Debug”下拉框中的“Start/Continue”
3. 单步调试(Next line):快捷键F7,或者点击“Debug”下拉框中的”Next line”
4. 跳⼊函数(Step into): 快捷键Shift+F7,或者点击“Debug”下拉框中的“Step into”
5. 跳出函数(Step out):快捷键Ctrl+F7,或者点击“Debug”下拉框中的“Step out”
6. 结束调试(Stop debugger):快捷键Shift+F8,或者点击“Debug”下拉框中的“Stop debugger”