'Visual studio 2019 crash while attach kernel debugging

Trying to attach the kernel through VS2019, and when I break, the VS (devenv.exe) suddenly crashed.



Solution 1:[1]

It was a nasty bug!

I tried to replace the WDK/SDK, reinstall the VS extension, and reinstall the VS (2022 isn't supporting kernel-debug yet), but nothing helped.

I knew the reason was heap corruption, I had bet the extension, but the real reason was the visual studio window layout. Since I'm syncing my layout with my MS account, it automatically applied, and some window within it cause the crash.

This is a sharing for the very few people that could encounter the same issue.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Maor Dahan