zoukankan      html  css  js  c++  java
  • ios 用LLDB查看模拟器文件路径以及一些常用的命令

    我看网络上有好多有关lldb调试命令的介绍,我都看了一遍,都没有这个方法,所以我在这里补充出来,帮助需要的人。

    另外附上一些

    实用LLDB命令

    我们可以使用e命令定义变量

    (lldb) e NSString *$str = @"http://www.cnblogs.com/JASON-SONG/"

    (lldb) po $str
    http://www.cnblogs.com/JASON-SONG/
     
     
    (lldb) e int $count = 10
    (lldb) p $count
    (int) $count = 10
    (lldb) e NSArray *itemArray = @[@"Test", @"Demo", @"huangyibiao"]
    (lldb) po $count
    10

    命令名 用法 说明

    expr expr 表达式 可以在调试时动态执行指定表达式,并将结果打印出来,很有用的命令。
    po po 表达式 与expr类似,打印对象,会调用对象description方法。是print-object的简写
    print print (type) 表达式 也是打印命令,需要指定类型。
    bt bt [all] 打印调用堆栈,是thread backtrace的简写,加all可打印所有thread的堆栈。
    br l br l breakpoint list的简写
    process continue l process continue 简写:c
    thread step-in l thread step-in l 简写:s
    thread step-inst l thread step-inst l 简写:si
    thread step-over l thread step-over l 简写:n
    thread step-over-inst l thread step-over-inst l 简写:ni
    thread step-out l thread step-out l 简写:f
    thread list thread list 简写:th l
  • 相关阅读:
    mysql实战45讲
    goland破解
    主从复制系列C
    主从复制系列B
    主从复制系列A
    sshd配置文件详解
    MySQL源码 数据结构array
    MySQL源码 information_schema新增表
    MySQL5.6 基于db的并行复制
    mysql 限制并发select patch
  • 原文地址:https://www.cnblogs.com/JASON-SONG/p/5206223.html
Copyright © 2011-2022 走看看