Archive for the Category debug


How to get rid from annoying IE warning when you debug a Silverlight application

When you try to open a local file, Internet Explorer displays the following warning: "To help protect your security, Internet Explorer has restricted this webpage from running scripts or ActiveX controls that could access your computer.Click here for options…".


You may run blocked file (application) by right click on the warning bar ,but doing this every time is very annoying. Especially when you debug Silverlight applications.  To disable the warning go to Tools->Internet Options and in opened dialog choose “Advanced”,then  check the fallowing option “Allow active content to run in files in My Computer*” as shown in the screenshot below.Then press “OK” and restart the browser .


Note: This trick can be useful when you open local XML or JS file

An alternative to WinDbg – Debug Analyzer.Net

WinDbg is a tool that allows you to analyze in detail any program problem, especially when the VS2008 is not available or can not be used. Despite the fact that it has existed for many years, the use of WinDbg can not be called simple and intuitive. So let me present a very interesting alternative.Debug Analyzer.NET is a debugging tool to analyze memory dumps using plug-ins written in .NET framework


  • Analysis Reporting – Create .NET based Plug-in to run analysis against a well defined Object Model to generate html reports
  • Instant Analyzer  – Write your analysis code in Code Editor and hit F5 to compile and execute your analysis so that you can see the results instantly.
  • Interactive Debugging – Ability to easily write Analysis commands just like Windbg but in .NET.
  • Visualizers – Write Plug-in to present the data as graphs, datagrid .
  • Helpers – Plug-in GUI which provides a way to write your own utility for other popular tools.



You need to install .NET Framework 4.0 Client Profile

Supported Versions of CLR

  • .NET 2.0 (and 3.x) memory dumps.
  • Support for .NET 4.0 and Silverlight coming soon.

Download Debug Analyzer.Net

SlimTune – an open source profiling and performance analysis tool for .NET applications

SlimTune is a open source profiler and performance tuning tool for .NET based applications, written in C#, VB.NET. It provides nice set of powerful features, such as remote profiling, real time results, multiple plugin-based visualizations. The source code of SlimTune is available under the terms of the MIT License.The tool is nice free alternative to an commercial profiler.


  • Live Profiling – reports results while your code still running
  • Remote Profiling – perform profiling proccess from a different computer
  • SQL Database Storage – all results stored in SQL database
  • Multiple Visualizations – different ways to present profiling results
  •  Plugin Support – write your own visualization plugin
slimtune-1 slimtune-2
slimtune-3 slimtune-4

Download SlimTune profiling tool


SSMS Tools PACK contains a few upgrades for Microsoft SQL Server Management Studio and Microsoft SQL Server Management Studio Express.


  1. Execution History (Soft Source Control) - Every statement that you run is logged in a file on your disk or in a table in a database that you specify.
  2. Text document Regions and Debug sections Regions behave in the same way as in Visual Studio.
  3. New query template - When opening a new query window you can specify a template that will be displayed. 
  4. CRUD stored procedure generation - CRUD((Create, Read, Update, Delete))stored procedure generation for tables based on fully customizable templates that you can change to suit your needs.
  5. Running custom scripts from Object explorer’s Context menu - You can specify a custom script text, its name and node on Object Explorer on which you want to run it from.

Download SSMS Tools Pack

Technorati Tags: , ,

An excellent series of articles by Maoni about the Garbage Collection

  • Using GC Efficiently Part 1 Maoni explains the cost of things so you can make good decisions in your managed memory usage.Maoni focuses on Workstation Garbage Collection ,then talks about stuff that s different for Server Garbage Collection and when you should use which.
  • Using GC Efficiently Part 2In this article Maoni talks about different flavors of Garbage Collection, the design goals behind each of them and how they work differently from each other so you can make a good decision of which flavor of Garbage Collection you should choose for your applications.
  • Using GC Efficiently Part 3 In this article Maoni talks about pinning and weak references stuff related to Garbage Collection handles.
  • Using GC Efficiently Part 4In this article Maoni talks about things you want to look for when you look at the managed heap in your applications to determine if you have a healthy heap.

Technorati Tags:  programming memory gc dotnet csharp clr

Page 1 of 3123