New Psscor2 commands – Dealing with Dates and Times

If you have ever tried to look at a System.DateTime or System.TimeSpan object in a debugger, you know how difficult it is to see what the value is.  For example, this is what a System.DateTime object looks like: 0:017> !do 0x040f59b8 Name: System.DateTime MethodTable: 60809f0c EEClass: 605e1fd8 Size: 16(0x10) bytes GC Generation: 2 (C:\Windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll) Fields:…

1

New Psscor2 commands – ClrStack showing source and line numbers

Continuing on from my previous post about DumpAllExceptions, here is another new update that comes with psscor2.  When you run !clrstack, you will now see the source and line information for the functions that are displayed.  This can be really helpful when trying to track down where a problem is and what path through your…

2

New Psscor2 commands – DumpAllExceptions

There have been a few places where you can see this command run, but I wanted to talk about it here officially.  This command is used to display all of the exceptions that are currently in the managed heap.  One interesting thing is that this function actually looks at what class the object derives from…

4

New debugger extension for .NET, Psscor2, released

*UPDATE* The download is now 32-bit !  I wanted to be the first to inform everyone that there is a major update to the debugger extension story for .NET.  Psscor2 has been released!  This is a superset of the SOS.dll that ships with the framework. This extension has a lot of advantages over SOS if you…

43

Debugging .NET apps for .NET 4.0

With Visual Studio 2010 and .NET 4.0 getting ready to be shipped sometime in the next year, I wanted to see what were peoples ideas for how to debug applications that were written with them.  Are you happy in production with what you are currently doing?  Do you use SOS.dll to troubleshoot problems? SOS The…

17

Videos are coming – suggested topics?

So I have started to create some videos showing various things that you can do.  Are there specific things that everyone would like to see?  I’d like to build a list of the things you want and then I can start knocking them out.  I’m figuring most of them are going to be around debugging…

2

Getting SOS to work, a historical view

When you try to debug a managed application using Windbg and SOS, there have been issues over the years that have come up with trying to get the extension to work properly. The major stumbling block has been to get it to load the proper files for it to work.  These files have changed over…

3

ASP.NET Tip: Understanding the caching of data in SOS

The sos that comes with the debugger, in the clr10 directory, has a lot of additional features and speed improvements for .NET 1.x troubleshooting.  One of the main ways it does this is by caching the data that is gathered from !DumpHeap -stat. This is something important to remember if something happens where the command…

3

Who uses SOSEX and what for?

Another thing I am curious to know is if anyone is using SOSEX and what advantages it gives you for debugging.  I have talked to the author of it and I think it has a lot of useful commands, just wanted to get everyone’s take on it. Let me know any problems you have with…

3

Debugger Extension update

The debugger extension that we were working on getting out with the debugger package has hit some roadblocks and it looks like it isn’t going to be shipping with the debugger anytime soon. We are looking to see if we can find an alternative method to get it out.  But for the meantime, just stay…

2