Qt Creator: No Debugger Set Up - debugging

Have to ask this question once again here as none of the replies I found solve the issue.
So the goal is to set up the debugger for Qt Creator on Windows 8.1 x64. Visual Studio 2015 Update 3 (Community) and Qt 5.7 32-bit are installed on the system. As far as I understand I need Debugging Tools For Windows, which are a part of the Windows SDK. Visual Studio seems to install Windows SDK, but it doesn't have debugging tools. If I look into "C:\Program Files (x86)\Windows Kits\10\Debuggers" I see only one folder there, which is "x64" (and I suppose there must have been "x86" for 32-bit Qt). That folder contains three .dll files and no cdb.exe.
I tried to install Windows Debugging Tools manually as a part of Windows SDK, downloaded from here, but when I run the installer it gives me the error:
I guess that's because VS already has Windows SDK. Should I uninstall some component from Visual Studio? But I really don't want to break it.
Any help is appreciated

Related

can I get windows SDK for xp on visual studio 2017?

I want to compile old C++ source code that I got from github and this is old apps which is need windows xp SDK and v141_xp build tools, I've tried to download manually from https://www.microsoft.com/en-us/download/details.aspx?id=8442 but this is not detected on my IDE. As you know old windows SDK as unavailable on visual studio package installer

Visual Studio WDK integration Issue

Recently I installed Visual Studio 2017 Enterprise along with WDK 10 for 1709 My workloads contained C++ workload. . My machine is a Windows 8.1 Pro with net framework 4.6.1. After installing the WDK I expected the templates to come in the Legacy section of Visual C++ but no legacy option is present in it. I don't understand what is the problem. Please help me.
Thanks in advance
I resolved the issue. It was due to a missing windows 10 SDK. Reinstallating the WDK with appropriate SDK solved the problem
Developing drivers to windows is quite interesting one will be exposed to advanced Operating System Concepts. The set up for the environment will be IDE
IDE - Visual Studio (https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&rel=16)
Compilers (WDK)
Debugger (WDK)
WDK contains both(https://go.microsoft.com/fwlink/?linkid=2085767). Latest Visual Studio(VS2019) will come along with the latest WDK(10, 1903 as of now).
Sometimes plugins might not work properly i.e integration issues between Visual Studio and WDk.
By going to the location "C:\Program Files (x86)\Windows Kits\10\Vsix\VS2019" and run VSIX installer.
Now in a new project, driver related templates are available.

From where does Visual Studio (2017 or 2015) enumerate the installed SDKs?

Visual Studio does not properly show all installed windows SDKs, failing to reflect what is installed in C:\Program Files (x86)\Windows Kits\10. My question for this forum is straight forward - does anyone know where Visual Studio looks to enumerate all the installed SDK versions and their install location? Is there a props file or registry entry somewhere?
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10
or
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0
The key is InstallationFolder.
I discovered this by reading
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.Cpp.WindowsSDK.props
The underlying issue I was seeing was that Visual Studio showed no Windows 10 dev kits as available, in spite of having two installed. I was able to fix the issue by taking the wow64 node from another machine that worked. It looked like this:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Microsoft SDKs\Windows\v10.0]
"InstallationFolder"="C:\\Program Files (x86)\\Windows Kits\\10\\"
"ProductName"="Microsoft Windows SDK for Windows 10.0.15063"
"ProductVersion"="10.0.15063"

Visual Studio 2010 Express, Windows SDK 7.1, CMake and 64 bit

I'm running into problems generating a Visual Studio 2010 Express 64 bit project through CMake. I installed VS2010 Express first, then the Windows SDK 7.1 in order to be able to build 64 bit apps and then tried to compile my CMake project.
I do not remember this to be that difficult with 2008 Express, but with 2010 I fail again and again. 2010 searches per default for 7.0a SDK which is shipped with it. The express version seems to ship a reduced 32 bit version, which is located under
.../Program Files(X86)/Microsoft SDKs/Windows/7.0a
Windows SDK 7.1 64bit will be installed per default under
.../Program Files/Microsoft SDKs/Windows/7.0
In VS 2010 Express the platform SDK can be changed on a per-project-map basis and if I do so the inherited path macros surprisingly point to the correct SDK. The problem now is, that CMake is not happy about me screwing around in the project files by myself. Thus, it always resets the Platform SDK entry to the default value, which will make the Windows SDK point to 7.0a and result in complaints about missing 64 bit libs.
I now see two possibilities to resolve this:
Find a way to really integrate the 7.1 SDK into VS2010 Express, just like with VS2008. VS2008 searches the registry for the tag 'CurrentInstallFolder' in the Windows SDKs entry, and you can change this entry to point to another SDK.
Find a way to tell CMake (2.8.1) to set the correct Platform SDK in the project. No plan how to do this...
I would appreciate any help. 2010 is somewhat mandatory unfortunately, I personally cannot get used to it at all...
Ok, updating to the latest CMake (2.8.12) resolved this, CMake now detects the 7.1 SDK and sets it in the project files.
Edit: The toolset can be chosen in a CMake file via the CMAKE_GENERATOR_TOOLSET flag

How to get Windbg x86 version?

I have a x64 machine and want to install Windbg (x86). I went on http://msdn.microsoft.com/en-us/windows/hardware/hh852365.aspx to download the Debugging Tools. However, only Windbg (x64) was installed.
The reason why I want the x86 version is because I am having issues debugging x86 applications which I do not encounter when using Windbg (x86).
I had trouble finding it a couple weeks ago as well. Ultimately I went to windbg.org, which linked me to the download I wanted. Check it out and see if that's what you need.
Short answer is get the latest SDK or DDK (now called the WDK) for Windows. The newest version of the Debugging Tools are included in the latest of each of these.
Installation directory
These are the default installation directories for Debugging Tools for Windows:
C:\Program Files (x86)\Windows Kits\8.x\Debuggers\x64
C:\Program Files (x86)\Windows Kits\8.x\Debuggers\x86
Excerpt from: http://msdn.microsoft.com/en-us/library/windows/hardware/ff551063(v=vs.85).aspx
Start here for an overview of Debugging Tools for Windows. This tool set includes WinDbg and other debuggers. The driver development environment and the Windows debuggers are integrated into Microsoft Visual Studio.
•To set up the integrated environment, install Visual Studio and then install the Windows Driver Kit (WDK). Debugging Tools for Windows is included in the WDK. You can get the integrated environment here.
•If you don't need the WDK, you can get Debugging Tools for Windows as part of the Windows Software Development Kit (SDK) for Windows 8.1. You can get the Windows SDK for Windows 8.1 here.
•If you want to download only Debugging Tools for Windows, install the Windows SDK, and, during the installation, select the Debugging Tools for Windows box and clear all the other boxes.
Here gives the direct download links from Microsoft official.
Windbg for windows 7 - download
x86: http://download.microsoft.com/download/A/6/A/A6AC035D-DA3F-4F0C-ADA4-37C8E5D34E3D/setup/WinSDKDebuggingTools/dbg_x86.msi
x64: http://download.microsoft.com/download/A/6/A/A6AC035D-DA3F-4F0C-ADA4-37C8E5D34E3D/setup/WinSDKDebuggingTools_amd64/dbg_amd64.msi
Windbg for windows 10 (WinDbg 10.0.18362.1) - download
x86: https://download.microsoft.com/download/4/2/2/42245968-6A79-4DA7-A5FB-08C0AD0AE661/windowssdk/Installers/X86%20Debuggers%20And%20Tools-x86_en-us.msi
x64: https://download.microsoft.com/download/4/2/2/42245968-6A79-4DA7-A5FB-08C0AD0AE661/windowssdk/Installers/X64%20Debuggers%20And%20Tools-x64_en-us.msi
Windbg preview (WindbgX) from Microsoft Store
https://www.microsoft.com/store/p/windbg/9pgjgd53tn86
Source:
https://github.com/yanglr/advDotnetDebugging/blob/main/README.md

Resources