I need cdb.exe
as a debugger for QT Creator. I know that cdb is available as a part of Windows SDK, but is not installed when I install Windows SDK through Visual Studio 2017 installer.
On the other hand, if I install Windows SDK standalone (available here), I can select "Debugging Tools", and finally I get the expected folder Debuggers
in Windows kits
, that contains cdb.
How can I get cdb
during Visual Studio install?
For VSPackages, that means a user can have several Visual Studio versions installed on the same computer. However, you cannot have side-by-side versions of your VSPackages loaded into a single version of Visual Studio.
You can attach the Visual Studio debugger to a running process on a local or remote computer. After the process is running, select Debug > Attach to Process or press Ctrl+Alt+p in Visual Studio, and use the Attach to Process dialog to attach the debugger to the process.
Files Related to msvsmon.exe C:\Program Files (x86)\Microsoft SDKs\Windows\v... C:\Program Files (x86)\Microsoft SDKs\Windows\v...
As you noticed, Visual Studio does not allow you to set any options when installing the SDK. However, after the SDK is installed, all you need to do is finding it in "Apps & features" and selecting "Modify". That will present you the options dialog where you can check "Debugging Tools for Windows¨. For me (SDK 10.0.17134.12) it creates the file
c:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe
that I set as debugger in Qt Creator. I use it to debug 32bit applications built with msvc2008 express.
You can't.
When the Visual Studio installer (2017, 2015, or any other one) gives you the checkbox for "Windows SDK 10.xxxxx" it really means "only the headers (.h), libraries (.lib), metadata (.winmd), etc. from the Windows SDK 10.xxxxx".
It does not include any of the options you see in the Windows SDK installer other than "Windows Software Development Kit". Neither WinDbg and the Debugging Tools for Windows, nor xperf and the Windows Performance Toolkit, nor Application Verifier, nor any of the other things you see int the SDK installer are included by selecting that checkbox in the VS installer.
The term "Windows SDK" is overloaded with two meanings which are related but not the same. sdksetup.exe
can install Windows SDK1, while the VS installer installs Windows SDK2 (which is a subset of Windows SDK1).
(Ignore the arrow. Image source: https://www.raymond.cc/blog/analyze-windows-7-performance-with-microsoft-windows-performance-toolkit/)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With