Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Load SOS extension for debugging

I'm trying to load SOS extension in visual studio 2010 (.Net framework 4) in a vb.net app without success.

First i found the following article suggesting that I type "!load sos" in the immidiate window. It resulted in the following error message:

Error during command: extension C:\Windows\Microsoft.NET\Framework64\v4.0.30319\sos.dll could not load (error 193)

Next I found an article suggesting .loadby sos clr. That gave me the following error:

Method arguments must be enclosed in parentheses.

How do I load it?

like image 419
jgauffin Avatar asked Aug 23 '10 11:08

jgauffin


1 Answers

You are running on a 64-bit version of Windows. Debugging with sos.dll is not possible when your program is 64-bit as well, Visual Studio is a 32-bit process.

Fix: Project + Properties, Compile tab, scroll down, Advanced, Target CPU = x86.

like image 198
Hans Passant Avatar answered Sep 20 '22 07:09

Hans Passant