数据断点
来源:互联网 发布:什么是移动数据流量 编辑:程序博客网 时间:2024/06/05 06:02
In some debuggers this is called "setting a trap" on a variable. What I want to do is trigger a breakpoint on any statement that changes the object. Or changes a property of the object.
I have an NSMutableDictionary that gets a value/key added to it but I can't find any statement that could be doing that.
You can set a watchpoint (from here):
Set a watchpoint on a variable when it is written to.(lldb) watchpoint set variable -w write global_var(lldb) watch set var -w write global_var(gdb) watch global_varSet a watchpoint on a memory location when it is written into. The size of the region to watch for defaults to the pointer size if no '-x byte_size' is specified. This command takes raw input, evaluated as an expression returning an unsigned integer pointing to the start of the region, after the '--' option terminator.(lldb) watchpoint set expression -w write -- my_ptr(lldb) watch set exp -w write -- my_ptr(gdb) watch -location g_char_ptrSet a condition on a watchpoint.(lldb) watch set var -w write global(lldb) watchpoint modify -c '(global==5)'(lldb) c...(lldb) bt* thread #1: tid = 0x1c03, 0x0000000100000ef5 a.out`modify + 21 at main.cpp:16, stop reason = watchpoint 1frame #0: 0x0000000100000ef5 a.out`modify + 21 at main.cpp:16frame #1: 0x0000000100000eac a.out`main + 108 at main.cpp:25frame #2: 0x00007fff8ac9c7e1 libdyld.dylib`start + 1(lldb) frame var global(int32_t) global = 5List all watchpoints.(lldb) watchpoint list(lldb) watch l(gdb) info breakDelete a watchpoint.(lldb) watchpoint delete 1(lldb) watch del 1(gdb) delete 1
0 0
- 数据断点
- 数据断点
- 数据断点
- 程序断点与数据断点
- 程序断点与数据断点
- 程序断点与数据断点
- 程序断点与数据断点
- 数据断点调试
- 数据断点调试技巧
- gdb打数据断点
- send断点数据地址
- 数据断点使用
- VS2012添加数据断点
- VC条件断点和数据断点
- 调试实战之数据断点
- Visual Studio的数据断点
- 手动加入写数据断点
- VS2005的数据断点功能
- 微信公众平台菜单自定义最简洁实用的教程(图文)
- select, poll和epoll的区别
- POJ 3258
- 升级python 带来的 yum 不能使用的问题
- Android-onInterceptTouchEvent()和onTouchEvent()总结
- 数据断点
- java学习笔记(四)面向对象
- Linux进程间通信——信号集函数
- 数据库设计技巧14则 - 数据库设计14个技巧
- IOS代码管控APP页面横竖屏切换
- select poll使用
- 关于代理和反向代理
- crtmpserver 基本流程分析
- linux进程状态-TASK_INTERRUPTIBLE and TASK_UNINTERRUPTIBLE