首页 > 其他分享 >debugger - win

debugger - win

时间:2023-04-11 17:48:14浏览次数:50  
标签:Set Debugger win List Command File Display debugger

dscript.txt

lm l
.reload /f /v TargetExe.exe
lm l
bp `TargetExe!abs:\path\to\the.cpp:3`
windbg -c "$<abs:\path\to\dscript.txt" -y "abs:\path\projectRoot" -srcpath "abs:\path\projectRoot" "abs:\path\project\build\TargetExe.exe"
cdb -c "$<abs:\path\to\dscript.txt" -y "abs:\path\projectRoot" -srcpath "abs:\path\projectRoot" "abs:\path\project\build\TargetExe.exe"
dv (Display Local Variables)
k (Display Stack Backtrace)

command token

    Command Tokens
    ; (Command Separator)
    { } (Block Delimiter)
    ${ } (Alias Interpreter)
    $$ (Comment Specifier)
    * (Comment Line Specifier)
    .block
    .break
    .catch
    .continue
    .do
    .else
    .elsif
    .for
    .foreach
    .if
    .leave
    .printf
    .while

command

    ENTER (Repeat Last Command)
    $<, $><, $$<, $$><, $$ >a< (Run Script File)
    ? (Command Help)
    ? (Evaluate Expression)
    ?? (Evaluate C++ Expression)
    # (Search for Disassembly Pattern)
    || (System Status)
    ||s (Set Current System)
    | (Process Status)
    |s (Set Current Process)
    ~ (Thread Status)
    ~e (Thread-Specific Command)
    ~f (Freeze Thread)
    ~u (Unfreeze Thread)
    ~n (Suspend Thread)
    ~m (Resume Thread)
    ~s (Set Current Thread)
    ~s (Change Current Processor)
    a (Assemble)
    ad (Delete Alias)
    ah (Assertion Handling)
    al (List Aliases)
    as, aS (Set Alias)
    ba (Break on Access)
    bc (Breakpoint Clear)
    bd (Breakpoint Disable)
    be (Breakpoint Enable)
    bl (Breakpoint List)
    bp, bu, bm (Set Breakpoint)
    br (Breakpoint Renumber)
    bs (Update Breakpoint Command)
    bsc (Update Conditional Breakpoint)
    c (Compare Memory)
    d, da, db, dc, dd, dD, df, dp, dq, du, dw, dW, dyb, dyd (Display Memory)
    dda, ddp, ddu, dpa, dpp, dpu, dqa, dqp, dqu (Display Referenced Memory)
    dds, dps, dqs (Display Words and Symbols)
    dg (Display Selector)
    dl (Display Linked List)
    ds, dS (Display String)
    dt (Display Type)
    dtx (Display Type - Extended Debugger Object Model Information)
    dv (Display Local Variables)
    dx (Display Debugger Object Model Expression)
    e, ea, eb, ed, eD, ef, ep, eq, eu, ew, eza, ezu (Enter Values)
    f, fp (Fill Memory)
    g (Go)
    gc (Go from Conditional Breakpoint)
    gh (Go with Exception Handled)
    gn, gN (Go with Exception Not Handled)
    gu (Go Up)
    ib, iw, id (Input from Port)
    j (Execute If - Else)
    k, kb, kc, kd, kp, kP, kv (Display Stack Backtrace)
    l+, l- (Set Source Options)
    ld (Load Symbols)
    lm (List Loaded Modules)
    ln (List Nearest Symbols)
    ls, lsa (List Source Lines)
    lsc (List Current Source)
    lse (Launch Source Editor)
    lsf, lsf- (Load or Unload Source File)
    lsp (Set Number of Source Lines)
    m (Move Memory)
    n (Set Number Base)
    ob, ow, od (Output to Port)
    p (Step)
    pa (Step to Address)
    pc (Step to Next Call)
    pct (Step to Next Call or Return)
    ph (Step to Next Branching Instruction)
    pt (Step to Next Return)
    q, qq (Quit)
    qd (Quit and Detach)
    r (Registers)
    rdmsr (Read MSR)
    rm (Register Mask)
    s (Search Memory)
    so (Set Kernel Debugging Options)
    sq (Set Quiet Mode)
    ss (Set Symbol Suffix)
    sx, sxd, sxe, sxi, sxn, sxr, sx- (Set Exceptions)
    t (Trace)
    ta (Trace to Address)
    tb (Trace to Next Branch)
    tc (Trace to Next Call)
    tct (Trace to Next Call or Return)
    th (Trace to Next Branching Instruction)
    tt (Trace to Next Return)
    u (Unassemble)
    uf (Unassemble Function)
    up (Unassemble from Physical Memory)
    ur (Unassemble Real Mode BIOS)
    ux (Unassemble x86 BIOS)
    vercommand (Show Debugger Command Line)
    version (Show Debugger Version)
    vertarget (Show Target Computer Version)
    wrmsr (Write MSR)
    wt (Trace and Watch Data)
    x (Examine Symbols)
    z (Execute While)

meta command

.abandon (Abandon Process)
.allow_exec_cmds (Allow Execution Commands)
.allow_image_mapping (Allow Image Mapping)
.apply_dbp (Apply Data Breakpoint to Context)
.asm (Change Disassembly Options)
.attach (Attach to Process)
.beep (Speaker Beep)
.bpcmds (Display Breakpoint Commands)
.bpsync (Synchronize Threads at Breakpoint)
.breakin (Break to the Kernel Debugger)
.browse (Display Command in Browser)
.bugcheck (Display Bug Check Data)
.cache (Set Cache Size)
.call (Call Function)
.chain (List Debugger Extensions)
.childdbg (Debug Child Processes)
.clients (List Debugging Clients)
.closehandle (Close Handle)
.cls (Clear Screen)
.context (Set User-Mode Address Context)
.copysym (Copy Symbol Files)
.cordll (Control CLR Debugging)
.crash (Force System Crash)
.create (Create Process)
.createdir (Set Created Process Directory)
.cxr (Display Context Record)
.dbgdbg (Debug Current Debugger)
.detach (Detach from Process)
.dml_flow (Unassemble with Links)
.dml_start (Display DML Starting Point)
.dump (Create Dump File)
.dumpcab (Create Dump File CAB)
.dvalloc (Allocate Memory)
.dvfree (Free Memory)
.echo (Echo Comment)
.echocpunum (Show CPU Number)
.echotime (Show Current Time)
.echotimestamps (Show Time Stamps)
.ecxr (Display Exception Context Record)
.effmach (Effective Machine)
.enable_long_status (Enable Long Integer Display)
.enable_unicode (Enable Unicode Display)
.endpsrv (End Process Server)
.endsrv (End Debugging Server)
.enumtag (Enumerate Secondary Callback Data)
.event_code (Display Event Code)
.eventlog (Display Recent Events)
.exdicmd (EXDI Command)
.exepath (Set Executable Path)
.expr (Choose Expression Evaluator)
.exptr (Display Exception Pointers)
.exr (Display Exception Record)
.excr (Display Exception Context Record)
.extmatch (Display All Matching Extensions)
.extpath (Set Extension Path)
.f+, .f- (Shift Local Context)
.fiber (Set Fiber Context)
.fiximports (Fix Target Module Imports)
.flash_on_break (Flash on Break)
.fnent (Display Function Data)
.fnret (Display Function Return Value)
.force_radix_output (Use Radix for Integers)
.force_tb (Forcibly Allow Branch Tracing)
.formats (Show Number Formats)
.fpo (Control FPO Overrides)
.frame (Set Local Context)
.help (Meta-Command Help)
.hh (Open HTML Help File)
.hideinjectedcode (Hide Injected Code)
.holdmem (Hold and Compare Memory)
.idle_cmd (Set Idle Command)
.ignore_missing_pages (Suppress Missing Page Errors)
.inline (Toggle Inline Function Debugging)
.imgscan (Find Image Headers)
.jdinfo (Use JIT_DEBUG_INFO)
.kdfiles (Set Driver Replacement Map)
.kdtargetmac (Display Target MAC Address)
.kframes (Set Stack Length)
.kill (Kill Process)
.lastevent (Display Last Event)
.lines (Toggle Source Line Support)
.load, .loadby (Load Extension DLL)
.locale (Set Locale)
.logappend (Append Log File)
.logclose (Close Log File)
.logfile (Display Log File Status)
.logopen (Open Log File)
.netsyms (Disable Network Symbol Loading)
.netuse (Control Network Connections)
.noshell (Prohibit Shell Commands)
.noversion (Disable Version Checking)
.ocommand (Expect Commands from Target)
.nvload (NatVis Load)
.nvlist (NatVis List)
.nvunload (NatVis Unload)
.nvunloadall (NatVis Unload All)
.ofilter (Filter Target Output)
.open (Open Source File)
.opendump (Open Dump File)
.outmask (Control Output Mask)
.pagein (Page In Memory)
.pcmd (Set Prompt Command)
.pop (Restore Debugger State)
.prefer_dml (Prefer Debugger Markup Language)
.process (Set Process Context)
.prompt_allow (Control Prompt Display)
.push (Save Debugger State)
.quit_lock (Prevent Accidental Quit)
.readmem (Read Memory from File)
.reboot (Reboot Target Computer)
.record_branches (Enable Branch Recording)
.reload (Reload Module)
.remote (Create Remote.exe Server)
.remote_exit (Exit Debugging Client)
.restart (Restart Target Application)
.restart (Restart Kernel Connection)
.rrestart (Register for Restart)
.scroll_prefs (Control Source Scrolling Preferences)
.scriptdebug (Debug JavaScript)
.scriptlist (List Loaded Scripts)
.scriptload (Load Script)
.scriptproviders (List Script Providers)
.scriptrun (Run Script)
.scriptunload (Unload Script)
.secure (Activate Secure Mode)
.send_file (Send File)
.server (Create Debugging Server)
.servers (List Debugging Servers)
.setdll (Set Default Extension DLL)
.shell (Command Shell)
.settings (Set Debug Settings)
.show_read_failures
.show_sym_failures
.sleep (Pause Debugger)
.sound_notify (Use Notification Sound)
.srcfix, .lsrcfix (Use Source Server)
.srcnoisy (Noisy Source Loading)
.srcpath, .lsrcpath (Set Source Path)
.step_filter (Set Step Filter)
.suspend_ui (Suspend WinDbg Interface)
.symfix (Set Symbol Store Path)
.symopt (Set Symbol Options)
.sympath (Set Symbol Path)
.thread (Set Register Context)
.time (Display System Time)
.tlist (List Process IDs)
.trap (Display Trap Frame)
.tss (Display Task State Segment)
.ttime (Display Thread Times)
.typeopt (Set Type Options)
.unload (Unload Extension DLL)
.unloadall (Unload All Extension DLLs)
.urestart (Unregister for Restart)
.wake (Wake Debugger)
.write_cmd_hist (Write Command History)
.writemem (Write Memory to File)
.wtitle (Set Window Title)

Control Keys

    CTRL+\ (Debug Current Debugger)
    CTRL+ALT+\ (Debug Current Debugger)
    CTRL+A (Toggle Baud Rate)
    CTRL+B (Quit Local Debugger)
    CTRL+C (Break)
    CTRL+D (Toggle Debug Info)
    CTRL+F (Break to KD)
    CTRL+K (Change Post-Reboot Break State)
    CTRL+P (Debug Current Debugger)
    CTRL+R (Re-synchronize)
    CTRL+V (Toggle Verbose Mode)
    CTRL+W (Show Debugger Version)

https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/debugger-reference

标签:Set,Debugger,win,List,Command,File,Display,debugger
From: https://www.cnblogs.com/Searchor/p/17307048.html

相关文章

  • windows下安装skywalking 9.2
      下载地址:https://skywalking.apache.org/downloads/安装,在skywalking9.0版本以后,APM包和agen包是分离的,解压后默认没有agent文件夹,需要手动创建,然后将解压后的skywalking-agent中的文件复制到agent文件夹下默认解压后的包含的文件创建agent后,目录结构在w......
  • C# 控制台应用windows修改host文件
    配置文件修改App.config部分主要是IP与地址<?xmlversion="1.0"encoding="utf-8"?><configuration><startup><supportedRuntimeversion="v4.0"sku=".NETFramework,Version=v4.7.2"/></star......
  • win10启动文件夹在哪里
    按Win+R键打开运行窗口,输入“shell:CommonStartup”代码。点击下面的确定按钮,运行代码。弹出文件夹即为系统启动文件夹。然后可以把希望自启动的程序的快捷方式复制到这个文件夹里,实现开机自启。......
  • 哪吒探针 - Windows 和Linux端agent安装(详细注意版)
    一、Windows端agent安装配置环境准备环境:Windows服务器软件:哪吒探针点击下载、nssm点击下载(探针agent和nssm都要下载准备好)设置环境变量下载软件后,解压到任意位置,然后按win+R打开运行窗口,输入sysdm.cpl打开系统属性–>高级–>环境变量–>系统变量–>Path在最后把......
  • 通过网页打开winform程序
    winform页面代码:///<summary>///注册表的写入///</summary>///<paramname="sender"></param>///<paramname="e"></param>privatevoidtsmiWriteRegister_Cli......
  • c#之winform—listview中排序 和 ICompare接口和IComparer接口的比较
    要在listview中实现排序,需要用listview.Sorting属性,它接受一个枚举类型的值list_view.Sorting=SortOrder.Ascending;//1为正序>其中None=0,//不排序Ascending=1,//升序Descending=2//降序然后在将ListViewItemComparer这个类的实例......
  • winform程序在不同操作系统下的兼容问题
    建议用.netframework3.5作为生成目标,CPU设置为any来开发,然后在app.config文件里加上<?xmlversion="1.0"encoding="utf-8"?><configuration><startupuseLegacyV2RuntimeActivationPolicy="true"><supportedRuntimeversi......
  • 快速把Nginx安装为Windows服务,把软件加入系统服务自动启动方法windows下
    用nssm软件下载地址:https://nssm.cc/download 首先介绍一个NSSM这个小工具,将exe做成系统服务,非常方便实用。官网:NSSM-theNon-SuckingServiceManager直接下载:nssm-2-24NSSM是一个服务封装程序,它可以将普通exe程序封装成服务,使之像windows服务一样运行。同类型的工具还......
  • Element Plus错误警告 | Popper: Detected CSS transitions on at least one of the f
    这个错误的解决方案如下:1.禁用"computeStyles"修饰符的adaptive选项:这将允许平滑过渡,但可能会降低性能。禁用"computeStyles"修饰符的adaptive选项,可以在创建Popper实例时指定modifiers参数,并将computeStyles的adaptive属性设置为false。示例如下:import{c......
  • 在Ubuntu系统上安装windows
    需要的工具:U盘 1.打开ubuntu启动盘制作工具,下载ubuntu镜像,制作启动器2.u盘启动,进入tryubuntu3.终端打开gparted  分割出一块合适大小的nfts区域用来装windows,如果直接用ubuntu的话由于本身的磁盘就在使用所以不能操作,只能在类似pe的系统里面操作4.制作windows启动盘......