none
'cdb' is not recognized as an internal or external command. RRS feed

  • Question

  • I'm trying to get call stack from dump file with cdb in cmd, but getting 'cdb' is not recognized as an internal or external command, operable program or batch file. I'm not good at windows, how to make windows recognize cdb command?
    Thursday, April 4, 2019 7:14 AM

All replies

  • Hello Nart Kenobi,

    Check this path: C:\Program Files (x86)\Windows Kits\10\Debuggers\x86 (or C:\Program Files (x86)\Windows Kits\10\Debuggers\x64) to see if cdb.exe is there. If it is you can navigate to its path can run the command again.

    If there is no cdb.exe or debuggers path you can install it via install Windows 10 SDK.

    If Windows 10 SDK has already installed you can open Settings, navigate to Apps & features, select Windows Software Development Kit, and then click Modify to change the installation to add Debugging Tools for Windows.

    Refer to "Download Debugging Tools for Windows" "Opening a Dump File Using CDB"

    Please let me know if it helps.

    Best regards,

    Rita


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, April 4, 2019 8:21 AM
  • Is there a way to create alias like in Linux systems, to avoid typing whole path to cdb.exe?
    Thursday, April 4, 2019 11:59 AM
  • Hi,

    You can add the path of cdb.exe to the environment variable $PATH:
    Temporary(lost efficacy when the current terminal is closed):
    export PATH=$PATH:/cdb_path

    Permanent validity for current users:
    vim ~/.bashrc 
    //Add the following command to the last line
    export PATH=$PATH:/cdb_path
    //Then save, quit and run the following command to effect Immediately
    source ~/.bashrc

    Permanent validity for all users(need to restart the system):
    vim /etc/profile
    //Find the line where PATH is set, add
    export PATH=$PATH:/cdb_path

    Or you can also copy the cdb.exe to system path "/bin"(but make sure the "/bin" is actually in $PATH)

    Then you could use the cdb like other system command, such as "ls".

    Best regards,

    Drake


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Friday, April 5, 2019 8:06 AM
    Moderator
  • Hello,
    Is there any updates? Please feel free to contact us if you have any other issue.

    Best regards,

    Drake


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, April 9, 2019 6:06 AM
    Moderator