1. #1
    jcgriff2's Avatar
    Join Date
    Feb 2012
    Location
    New Jersey Shore
    Posts
    14,528

    Register Windbg for dump files (File Associations)


    SET WINDBG FILE ASSOCIATIONS


    These simple commands will set Windbg as the default app to open files with file extensions .DMP, .HDMP, .MDMP, .KDMP and .WEW.

    You can then double-click on a dump file and Windbg will start.

    Bring up an Admin CMD prompt; enter these 2 line commands:
    Code:
    cd\Program Files (x86)\Windows Kits\8.0\Debuggers\x64
    
    windbg.exe -IA
    * Change line 1 to the folder containing your installed Windbg

    CMD Screen + Result of line 2 (Windbg will open):


    - The above is from a Windows 7 SP1 x64 system
    - Windbg version = Windows 8.0 (6.2.9200) x64



    Set Windbg to "Run as Admin" - RIGHT-click on Windbg.exe via Windows Explorer -
    Read More:
    Last edited by jcgriff2; 11-11-2014 at 05:17 AM.
    blueelvis, zigzag3143, LilBambi and 6 others say thanks for this.

    BSOD Posting Instructions - Windows 10, 8.1, 8, 7 & Vista ` ` `Carrona Driver Reference Table (DRT)
    https://www.sysnative.com/
    Sysnative Hex-Decimal-UNIX Date Conversion

    Has Sysnative Forums helped you?
    Please consider donating to help support the forum.
    Thank You!

    Microsoft MVP 2009-2015


    • Ad Bot

      advertising
      Beep.

        
       

  2. #2
    jcgriff2's Avatar
    Join Date
    Feb 2012
    Location
    New Jersey Shore
    Posts
    14,528

    re: Register Windbg for dump files (File Associations)

    LilBambi says thanks for this.

    BSOD Posting Instructions - Windows 10, 8.1, 8, 7 & Vista ` ` `Carrona Driver Reference Table (DRT)
    https://www.sysnative.com/
    Sysnative Hex-Decimal-UNIX Date Conversion

    Has Sysnative Forums helped you?
    Please consider donating to help support the forum.
    Thank You!

    Microsoft MVP 2009-2015

  3. #3
    x BlueRobot's Avatar
    Join Date
    May 2013
    Location
    Minkowski Space
    Posts
    1,590

    re: Register Windbg for dump files (File Associations)

    I would love to have access to the Private symbols.
    Machines Can Think

    I am currently studying again, and therefore may not be available very often.


  4. #4
    jcgriff2's Avatar
    Join Date
    Feb 2012
    Location
    New Jersey Shore
    Posts
    14,528

    Re: Register Windbg for dump files (File Associations)

    For additional Program Default options for Windbg, please see - http://www.sysnative.com/forums/bsod...ump-files.html
    usasma and LilBambi say thanks for this.

    BSOD Posting Instructions - Windows 10, 8.1, 8, 7 & Vista ` ` `Carrona Driver Reference Table (DRT)
    https://www.sysnative.com/
    Sysnative Hex-Decimal-UNIX Date Conversion

    Has Sysnative Forums helped you?
    Please consider donating to help support the forum.
    Thank You!

    Microsoft MVP 2009-2015

  5. #5
    jcgriff2's Avatar
    Join Date
    Feb 2012
    Location
    New Jersey Shore
    Posts
    14,528

    Re: Register Windbg for dump files (File Associations)

    Add Windbg (kd>) Commands to Program Default for Dump Files

    Most of us have Windbg set up as the default program for dump files - Register Windbg for dump files (File Associations)

    Did you know that you can also add kd commands to run by default as well?

    Simply setting up Windbg as the default program leaves Windbg at this point after double-clicking on a dump file -- waiting for you to enter additional commands at the kd> line such as !analyze -v -
    Code:
    *******************************************************************************
    *                                                                             *
    *                        Bugcheck Analysis                                    *
    *                                                                             *
    *******************************************************************************
    
    Use !analyze -v to get detailed debugging information.
    
    BugCheck 50, {fffff80011b0e74d, 8, fffff80011b0e74d, 2}
    
    Could not read faulting driver name
    Probably caused by : ntkrnlmp.exe ( nt! ?? ::FNODOBFM::`string'+43346 )
    
    Followup: MachineOwner
    ---------
    I changed my default set up to include these commands -
    Code:
    !analyze -v;r;kv;lmtn;lmtsmn;.bugcheck
    So, when I double-click on a dump file, all of the basic commands that I like to run do so without me having to enter them at the kd> command line.

    Try it out!

    Back up your registry first (I opted to create a system restore point).

    Maneuver to this registry key and add your default Windbg commands -

    Code:
    HKLM\SOFTWARE\Classes\WinDbg.DumpFile.1\shell\Open\command
    The (Default) should look something like this (by default):
    Code:
    "C:\Program Files (x86)\Windows Kits\8.1\Debuggers\x64\windbg.exe" -z "%1"
    I added the kd commands that I mentioned above:
    Code:
    "C:\Program Files (x86)\Windows Kits\8.1\Debuggers\x64\windbg.exe" -z "%1" -c "!analyze -v;r;kv;lmtn;lmtsmn;.bugcheck"
    Double-clicking on a dump file now runs all of the commands in RED by default.

    Please note that I made these changes yesterday for the first time, so it is far from 100% tested.

    Regards. . .

    John

    BSOD Posting Instructions - Windows 10, 8.1, 8, 7 & Vista ` ` `Carrona Driver Reference Table (DRT)
    https://www.sysnative.com/
    Sysnative Hex-Decimal-UNIX Date Conversion

    Has Sysnative Forums helped you?
    Please consider donating to help support the forum.
    Thank You!

    Microsoft MVP 2009-2015

Similar Threads

  1. [SOLVED] Access is Denied with Kernel Memory Dump [WinDbg]
    By x BlueRobot in forum BSOD, Crashes, Kernel Debugging
    Replies: 5
    Last Post: 11-08-2013, 09:00 PM
  2. [BATCH/VBS] List File Associations - ASSOC CMD
    By jcgriff2 in forum Windows Tips & Tricks
    Replies: 9
    Last Post: 10-10-2013, 12:41 AM
  3. [BATCH/ VBS] [BATCH/VBS] List File Associations - ASSOC CMD
    By jcgriff2 in forum Programming
    Replies: 5
    Last Post: 09-15-2013, 10:24 PM
  4. Windbg: Processes and Threads in mini dump?????
    By Shintaro in forum BSOD, Crashes, Kernel Debugging
    Replies: 4
    Last Post: 06-14-2012, 11:52 AM

Log in

Log in