常用 si,ni ,ex, mem,di,reg,b,c,x

以下内容是lldb帮助文档中内容:

apropos           -- List debugger commands related to a word or subject.

breakpoint        -- Commands for operating on breakpoints (see 'help b' for

shorthand.)

bugreport         -- Commands for creating domain-specific bug reports.

command           -- 这 个可以 自定义命令

         command alias hp help.    用hp 替换help命令

disassemble       --显示汇编代码 d di dis 等缩写都可以

expression        -- 显示变 量的值

        ex    n

frame            :

  info  用法 frame info 显示一些当前线程信息

  select     frame select 显示当前调试线程位置信息

  variable  frame var   显示当前调试线程局部变量信息

kdp-remote        -- Connect to a process via remote KDP server.  If no UDP

port is specified, port 41139 is assumed.

language          -- Commands specific to a source language.

log               -- Commands controlling LLDB internal logging.

  memory            --操作当前进程内存

        mem read &result   读取变量result中的值

       

       mem read -c  &result 显示100字节

platform          -- Commands to manage and create platforms.

plugin            -- lldb插件管理

process           -- Commands for interacting with processes on the current

platform.

quit              -- 退出lldb

register          -- 读写寄存器值

      

script            -- Invoke the script interpreter with provided code and

display any results.  Start the interactive interpreter

if no code is supplied.

settings          -- Commands for managing LLDB settings.

source            -- 通过调试信息展示源文件信息

target            -- Commands for operating on debugger targets.

thread            -- Commands for operating on one or more threads in the

current process.

type              -- Commands for operating on the type system.

version           -- Show the LLDB debugger version.

watchpoint        -- Commands for operating on watchpoints.

Current command abbreviations (type 'help command alias' for more info):

add-dsym  --增加符号表

attach    -- 附加进程

b      设置断点

bt        显示当前栈信息,frame中有的命令功能相同

c        继续运行当前进程中的所有线程

call      直接调用表达示 比如 call 1+1

continue  -- Continue execution of all threads in the current process.

detach    -- Detach from the current target process.

di          dis 显示反汇编代码

display   -- Evaluate an expression at every stop (see 'help target

stop-hook'.)

down      -- Select a newer stack frame.  Defaults to moving one frame, a

numeric argument can specify an arbitrary number.

env       -- Shorthand for viewing and setting environment variables.

exit      -- 退出

f         -- Select the current stack frame by index from within the current

thread (see 'thread backtrace'.)

file      -- Create a target using the argument as the main executable.

finish    -- Finish executing the current stack frame and stop after

returning.  Defaults to current thread unless specified.

image     -- Commands for accessing information for one or more target

modules.

j         -- Set the program counter to a new address.

jump      -- Set the program counter to a new address.

kill      -- Terminate the current target process.

l         --显示源码

list

n         源码级别单步

next      -- Source level single step, stepping over calls.  Defaults to

current thread unless specified.

nexti     -- Instruction level single step, stepping over calls.  Defaults to

current thread unless specified.

ni        汇编级别单步

p         -- Evaluate an expression on the current thread.  Displays any

returned value with LLDB's default formatting.

parray    -- Evaluate an expression on the current thread.  Displays any

returned value with LLDB's default formatting.

po        -- Evaluate an expression on the current thread.  Displays any

returned value with formatting controlled by the type's author.

poarray   -- Evaluate an expression on the current thread.  Displays any

returned value with LLDB's default formatting.

print     -- Evaluate an expression on the current thread.  Displays any

returned value with LLDB's default formatting.

q         -- Quit the LLDB debugger.

r         -- Launch the executable in the debugger.

rbreak    -- Sets a breakpoint or set of breakpoints in the executable.

repl      -- Evaluate an expression on the current thread.  Displays any

returned value with LLDB's default formatting.

run       -- Launch the executable in the debugger.

s         -- Source level single step, stepping into calls.  Defaults to

current thread unless specified.

si        -- Instruction level single step, stepping into calls.  Defaults to

current thread unless specified.

sif       -- Step through the current block, stopping if you step directly

into a function whose name matches the TargetFunctionName.

step      -- Source level single step, stepping into calls.  Defaults to

current thread unless specified.

stepi     -- Instruction level single step, stepping into calls.  Defaults to

current thread unless specified.

t         -- Change the currently selected thread.

tbreak    -- Set a one-shot breakpoint using one of several shorthand

formats.

undisplay -- Stop displaying expression at every stop (specified by stop-hook

index.)

up        -- Select an older stack frame.  Defaults to moving one frame, a

numeric argument can specify an arbitrary number.

x         读内存地址

lldb使用的更多相关文章

  1. iOS逆向工程之Hopper+LLDB调试第三方App

    LLDB是Low Level Debugger的简称,在iOS开发的调试中LLDB是经常使用的,LLDB是Xcode内置的动态调试工具.使用LLDB可以动态的调试你的应用程序,如果你不做其他的额外处理 ...

  2. LLDB基础知识

    LLDB基础知识 LLDB控制台 Xcode中内嵌了LLDB控制台,在Xcode中代码的下方,我们可以看到LLDB控制台. LLDB控制台平时会输出一些log信息.如果我们想输入命令调试,必须让程序进 ...

  3. Xcode LLDB Debug教程

    开胃小菜--简单的断点调试 在xcode中打开一个app,在想要break的行号上单击,即可生成一个深色的箭头标识--断点.如下图,在viewDidLoad:中设置了断点. 运行app,等待...就可 ...

  4. 让Xcode的控制台支持LLDB类型的打印

    这个技巧个人认为非常有用 当Xcode在断点调试的时候,在控制台中输入 po self.view.frame 类似这样的命令会挂掉,不信可以亲自去试试(Xcode7 以后支持LLDB类型的打印) 那么 ...

  5. IOS调试lldb命令常用,po,

    lldb命令常用(备忘) 假如你准备在模拟器里面运行这个,你可以在"(lldb)"提示的后面输入下面的: (lldb) po $eax LLDB在xcode4.3或者之后的版本里面 ...

  6. 如何在LLDB下排查message sent to deallocated instance问题

    转:http://www.devdiv.com/home.php?mod=space&uid=50901&do=blog&id=50856 在XCode的以前版本中,如果遇到了 ...

  7. debug 使用lldb

    http://www.zddhub.com/memo/2015/12/20/lldb-golang-debug/ go build -gcflags "-N -l" -o test ...

  8. LLDB命令查看内存的分配历史

    (lldb) script import lldb.macosx.heap(lldb) malloc_info --stack-history 0x10010d680

  9. iOS调试 LLDB

      LLDB是个开源的内置于XCode的具有REPL(read-eval-print-loop)特征的Debugger,其可以安装C++或者Python插件.   常用调试命令:   1.print命 ...

  10. lldb

    所有命令选择与input 值用  -- 区分 1 p/x 16 转16进制 https://sourceware.org/gdb/onlinedocs/gdb/Output-Formats.html ...

随机推荐

  1. Error creating bean with name 'eurekaAutoServiceRegistration'

    spring-boot项目不断重启,报错: org.springframework.beans.factory.BeanCreationNotAllowedException: Error creat ...

  2. {Python之线程} 一 背景知识 二 线程与进程的关系 三 线程的特点 四 线程的实际应用场景 五 内存中的线程 六 用户级线程和内核级线程(了解) 七 python与线程 八 Threading模块 九 锁 十 信号量 十一 事件Event 十二 条件Condition(了解) 十三 定时器

    Python之线程 线程 本节目录 一 背景知识 二 线程与进程的关系 三 线程的特点 四 线程的实际应用场景 五 内存中的线程 六 用户级线程和内核级线程(了解) 七 python与线程 八 Thr ...

  3. c语言笔记 数组2

    15. c99以前一直使用 gets 和 puts来输入输出字符串,但是gets因为无法获知内存大小,容易出现内存溢出(对此c99对gets,采取保留态势,c11直接废除,但是某些编译器仍然默认可以使 ...

  4. win10 Java环境变量,hadoop 环境变量

    妈呀,今天又重装了系统.需要装上java环境. 安装环境老百度,然后老掉坑.(path 路经) 1,新建环境变量 JAVA_HOME 2, 新建 CLASSPATH 环境变量 .;%JAVA_HOME ...

  5. 超级有用的15个mysqlbinlog命令

    在MySQL或MariaDB中,任意时间对数据库所做的修改,都会被记录到日志文件中.例如,当你添加了一个新的表,或者更新了一条数据,这些事件都会被存储到二进制日志文件中.二进制日志文件在MySQL主从 ...

  6. .NET工程师必须掌握的知识点

    Microsoft SQL Server 数据库 一.创建和维护数据库 1.数据库 SQL Server 数据库的组成部分?(参见联机丛书) 如何保证数据库的完整性.安全性.并发性? 数据库设计创建步 ...

  7. 直和 direct sum

    小结: 1.xy平面 与  直和 https://en.wikipedia.org/wiki/Direct_sum For example, the xy-plane, a two-dimension ...

  8. windows hook 钩子

    windows  hook  钩子 场景: 1.打印机 Ctrl+P弹出支付窗口,付款成功后打印

  9. iOS-原生纯代码约束总结(一)之 AutoresizingMask

    一,概述 iOS有两大自动布局利器:autoresizing 和 autolayout(autolayout是IOS6以后新增).autoresizing是UIView的属性,一直存在,使用也比较简单 ...

  10. winform版的dota改键器

    从网上找的源码很不齐全,自己补充了一下,有兴趣的可以看看. 首先是建立一个hook类WFChangeKey using System; using System.Reflection; using S ...