Rupreet's Weblog

Looking deep inside under the hood

  Home  |   Contact  |   Syndication    |   Login
  12 Posts | 0 Stories | 38 Comments | 58 Trackbacks

News

Archives

Post Categories

Debugging

Setting the context… We have a web application which communicates with WCF based service façade for any business functionality. This service façade then loads assembly (based on configuration) at the runtime for making the system pluggable. By default the implementation is in the service assembly itself. Below is the sample code for loading the assembly and creating an instance of the desired class. Assembly asm = Assembly.LoadFrom(Path.Comb... assemblyName));...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

You can use SOS from within your VS.NET IDE. First you need to unable “unmanaged code” debugging option in Visual Studio. Go to Project Properties -> Configuration Properties -> Debugging -> “Enable Unmanaged Debugging”. Set this option to “True”. Then you set a breakpoint in your code. When this breakpoint is hit, open the “immediate window” and load SOS debugger extension through the “.load sos” command. You can also use “!help”...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati