Mac终端用lldb调试(2)
来源:互联网 发布:万得 wind 金融数据 编辑:程序博客网 时间:2024/06/05 23:57
还是同样的test.cpp
#include <iostream>using namespace std;int func(int n) { int sum=0,i; for(i = 0; i < 7; i++) { sum+=i; } return sum; } int main() { int i; int result = 0; for(i = 1; i <= 10; i++) { result += i; } cout << result << endl; func(10); return 0;}
这次我们在24行设置断点,r后用一直输入n发现程序跳过了25行,直接到了return0,怎么回事?
原来使用n会跳过函数,只有使用s才会进入函数体,进入函数体之后我们又可以使用n了(当然使用s还是可以的)~
1 0
- Mac终端用lldb调试(2)
- Mac终端用lldb调试(1)
- Mac下用lldb调试C程序
- Mac下用lldb调试C程序
- LLDB调试
- LLDB调试
- lldb调试
- lldb 调试
- LLDB调试
- LLdb调试
- LLDB调试
- Mac下命令行编译和调试:llvm, clang / lldb
- iOS mac上用终端写代码并调试
- NDK之路-1-(LLDB调试)
- Mac终端(一)
- lldb常用调试命令
- LLDB调试命令初探
- LLDB调试命令初探
- ZKUI中文编码以及以docker方式运行的问题
- Python字典处理技巧
- 面向对象、类、接口- 不错的总结
- Android Context上下文误区
- ActiveMQ消息传送机制以及ACK机制详解
- Mac终端用lldb调试(2)
- 实用的网站记录
- Android 音频 录音与播放
- laravel5.3学习资料
- 学习css布局
- 网站robots.txt文件
- ref与out使用区别探究
- Linux根文件系统介绍[转载]
- 有符号数值类型的最大值加1为什么是其最小值?