Skip to content

Instantly share code, notes, and snippets.

@uemuraj
Created July 28, 2019 05:56
Show Gist options
  • Save uemuraj/9b35c555ad1e4098a63852acf33ba2fd to your computer and use it in GitHub Desktop.
Save uemuraj/9b35c555ad1e4098a63852acf33ba2fd to your computer and use it in GitHub Desktop.
Windows デバッグ用シンボルファイルのダウンロード

シンボルファイルのダウンロードはもう無くなったそうです。デバッガに付属の symchk.exe でダウンロードします。

以下は Visual Studio 2019 のデフォルトのキャッシュディレクトリにシンボルファイルをダウンロードする例:

symchk /r C:\Windows\SysWOW64 /s SRV*%TEMP%\SymbolCache*https://msdl.microsoft.com/download/symbols
symchk /r C:\Windows\System32 /s SRV*%TEMP%\SymbolCache*https://msdl.microsoft.com/download/symbols

ちょっと罠なのは:

  • Visual Studio の最新をインストールしていると SDK の最新が入った状態になるけれど symchk が無いみたい
  • 後から SDK をダウンロードしてインストールしようとしても「もう入っている」と言われる
  • なので WDK をダウンロードしてインストールする、windbg などと一緒に symchk が入ります
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment