0

In Visual Studio I use .load sos in the Immediate Window to load sos.dll. What is this '.load'? Is there some description for it?

In the Immediate Window I Can: Evaluate an expression (? varA), execute program command (varA=1) or execute VS commad (>cmd). Where is .load at this scheme? Can it be used on some other place (Command Window Macro)?

IvanH
  • 5,039
  • 14
  • 60
  • 81

2 Answers2

2

Is is a command for the unmanaged debugger. You'll need Project + Properties, Debug tab, "Enable unmanaged code debugging" option turned on and start debugging your program. After loading an extension with .load, you can get help for it by typing !help. Debugger extension commands start with . or !

You can get more info about debugger extensions from the debugger.chm help file that's included with the Debugging Tools for Windows package. It is no longer a separate download these days but included with the Windows SDK. Find it back in c:\program files (x86)\debugging tools for windows (x86) directory.

Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536
  • It is almost what I need. When I check "Enable unmanaged code debugging" commands in immediate window starting with dot are accepted as a debugging extesion? Is it possible to use it from different place (I am especialy interested in macro)? BTW x64 folder is C:\Program Files\Debugging Tools for Windows (x64). – IvanH Apr 10 '12 at 14:23
0

It loads a windbg extension.

In this case, the SOS extension.

See the WinDbg / SOS Cheat Sheet.

Oded
  • 489,969
  • 99
  • 883
  • 1,009
  • It is what it does (thanks for useful link). But I would like to know what is it (to which category it belongs). – IvanH Apr 10 '12 at 11:33
  • @IvanH - Not sure I follow. It is used for working with extensions. – Oded Apr 10 '12 at 11:50