Visual Studio Debugger Canvas – Efficient way to see callstacks

27 May

If you are a .NET developer you must have done debugging..Traditionally when we do debugging its very source file centric which means you can set breakpoints in source files but when you stepping through your code you might easily loose overall picture if you have complex procedures functions calling here and there. This is really common if you are debugging very complex code that has a big callstack.

As the name suggests Debugger Canvas helps you to debug your code with kind of overall picture of your call stack in pictorial representation on a Canvas in mind. It helps you to understand bigger picture of your code while you are debugging.

Debugger canvas is actually a Visual Studio Plugin more information and you can download it from here or use visual studio extensions manager to download it

Here is the sample code which calculates factorial of a number which I used to test this plugin and see the debugger canvas output and traditional callstack view approach.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Factorial
    class Program
        static void Main(string[] args)
            var number = 8;

            Console.WriteLine("Factorial Of " + number + " Is " + GetFactorial(number ));


        static long GetFactorial(long number)
            long factorial = 1;
            for (int i = 1; i <= number; i++)
                factorial = factorial * i;
            return factorial;

Debugger Canvas


Traditional Callstack view windows in Visual Studio 2010


Leave a comment

Posted by on May 27, 2012 in Visual Studio



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: