sos.dll usage in visual studio 2013
Asked Answered
C

3

7

When I am reading docs about sos.dll @MSDN, encounter a note says

If you are using Visual Studio 2013, SOS.dll is supported in the Windows Debugger within Visual Studio

I know how to use sos.dll in the immediate window in Visual Studio 2012. But how to use sos.dll with visual studio 2013 debugger?

Cohlette answered 15/7, 2014 at 3:3 Comment(0)
A
4

From MSDN documentation of What’s New for the Debugger in Visual Studio 2013 (Excerpt from the part Debug With Debugging Tools for Windows)

The SOS.dll (SOS Debugging Extension) that helps you debug managed programs in WinDbg, is not available from the Visual Studio IDE. See Debugging Managed Code Using the Windows Debugger

Looks like you may need to load them separately as being said Here

Artema answered 15/7, 2014 at 3:17 Comment(0)
S
2

I couldn't get sos.dll to load in Visual Studio 2013 no matter what I tried.

I've resorted to good old WinDbg instead. I know it's not an ideal answer, but it appears to be the only possible solution to debugging with sos.dll. I'd really like to use sos.dll in Visual Studio 2013, but WinDbg isn't so bad once you learn its basics. It's actually very powerful, even if you know very little about the unmanaged world (like me).

How to load SOS in WinDbg

Sled answered 8/9, 2014 at 18:4 Comment(0)
U
0

Yes you can use SOS from VS 2017. But you will need to install windows driver kit (WDK). Here is a screenshot of me debugging a process with command line debugger within VS 2017.

https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/setting-up-user-mode-debugging-in-visual-studio

enter image description here

Uriiah answered 6/5, 2018 at 0:12 Comment(2)
"This feature is not available in Windows 10, version 1507 and later versions of the WDK". Copied from your link .. sadly, i verified it doesn't work for me.Phonograph
Sorry to hear that. Not sure why they removed it. Well then you need to go traditional way then with WinDBg. But I will test at home today and see.Uriiah

© 2022 - 2024 — McMap. All rights reserved.