dbg
dbg.aftersyscallStop execution before the syscall is executed (see dcs) Default is truedbg.argsSet the args of the program to debugdbg.backendSelect the debugger backend Default is nativedbg.bepBreak on entrypoint Default is loaderdbg.bpinmapsForce breakpoints to be inside a valid map Default is true-
dbg.bpinmapscan be used to place breakpoints / see unmapped memory
-
dbg.bpsizeSize of software breakpoints Default is 8dbg.bpsysignIgnore system breakpoints Default is falsedbg.btalgoSelect backtrace algorithm Default is fuzzy-
Set
dbg.btalgototraceto trace calls for backtrace
-
dbg.btdepthDepth of backtrace Default is 128dbg.cloneStop execution if new thread is created Default is falsedbg.consbreakSIGINT handle for attached processes Default is falsedbg.exe.pathPath to binary being debugged-
dbg.exe.pathHelpful for when debugging a remote binary. May help loading symbols properly. Need to specify the base address with-Bwhile loading with r2.
-
dbg.execsStop execution if new thread is created Default is falsedbg.exitkillsKill process on exit Default is truedbg.followFollow program counter when pc > core->offset + dbg.follow Default is 32dbg.follow.childContinue tracing the child process on fork. By default the parent process is traced Default is falsedbg.forksStop execution if fork() is done (see dbg.threads) Default is falsedbg.funcargDisplay arguments to function call in visual mode Default is false source-
To use
dbg.funcarg, step into a call which inVppvisual mode. asciinema
-
dbg.gdb.page_sizePage size on gdb target (useful for QEMU) Default is 0x00001000dbg.gdb.retriesNumber of retries before gdb packet read times out Default is 10dbg.hwbpSet HW or SW breakpoints Default is 0dbg.libsIf set stop when loading matching libnamedbg.mallocChoose malloc structure parser Default is jemallocdbg.profilePath to RRunProfile file-
🚀 Can use dgb.profile to pass multiple args to a debugged binary. asciinema
-
dbg.slowShow stack and regs in visual mode in a slow but verbose mode Default is false-
Set
e dbg.slow=1to get a more PEDA like visual debugging.Vpp
-
dbg.statusSet cmd.prompt to '.dr' or '.dr;drd;sr PC;pi 1;s-' Default is falsedbg.swstepForce use of software steps (code analysis+breakpoint) Default is falsedbg.threadsStop all threads when debugger breaks (see dbg.forks) Default is false- 🚀
dbg.traceTrace program execution (see asm.trace) Default is false asciinema dbg.trace.inrangeWhile tracing, avoid following calls outside specified range Default is falsedbg.trace.libsTrace library code too Default is truedbg.trace.tagTrace tag Default is 0dbg.unlibsIf set stop when unloading matching libname
dbg.bpinmaps dbg.aftersyscall dbg.args dbg.backend dbg.bep dbg.bpinmaps dbg.bpsize dbg.bpsysign dbg.btalgo dbg.btdepth dbg.clone dbg.consbreak dbg.exe.path dbg.execs dbg.exitkills dbg.follow dbg.follow.child dbg.forks dbg.gdb.page_size dbg.gdb.retries dbg.hwbp dbg.libs dbg.malloc dbg.profile dbg.slow dbg.status dbg.swstep dbg.threads dbg.trace dbg.trace.inrange dbg.trace.libs dbg.trace.tag dbg.unlibs