Now Available: Psscor4 – Debugger Extension for .NET 4.0

I am very happy to announce that Psscor4 is now available for download.  You can download it from:

Psscor4 Managed-Code Debugging Extension for WinDbg

This should have the same functionality as Psscor2 does but it works against the .NET 4.0 Framework.  Please let me know if you run into any problems downloading or using this extension.  I would also love to know if you have any feature requests for it.

Comments

  • Anonymous
    May 02, 2011
    The comment has been removed

  • Anonymous
    May 02, 2011
    This is a debugger extension so it won't show up in loaded modules.  It should show up in: .chain That shows loaded debugger extensions. You can try running !eeversion to see if it is loaded correctly and working.

  • Anonymous
    May 07, 2011
    Hi Tom, When I use PSSCOR4 I get the following output for DumpHeap :


0:004> !dumpheap -type Exception Loading the heap objects into our cache. Address       MT     Size 01ca1024 5392fdc4       84    0 System.Exception 01ca1024 5392fdc4       84     01ca1078 5392ff08       84    0 System.OutOfMemoryException 01ca1078 5392ff08       84     01ca10cc 5392ff54       84    0 System.StackOverflowException 01ca10cc 5392ff54       84     01ca1120 5392ffa0       84    0 System.ExecutionEngineException 01ca1120 5392ffa0       84     01ca1174 5392ffec       84    0 System.Threading.ThreadAbortException 01ca1174 5392ffec       84     01ca11c8 5392ffec       84    0 System.Threading.ThreadAbortException 01ca11c8 5392ffec       84     0:004> !dumpheap -type Exception -short 01ca1024 01ca1024 01ca1078 01ca1078 01ca10cc 01ca10cc 01ca1120 01ca1120 01ca1174 01ca1174 01ca11c8 01ca11c8

While I'm still getting the expected output from the standard SOS :

0:004> !dumpheap -type Exception Address       MT     Size 01ca1024 5392fdc4       84     01ca1078 5392ff08       84     01ca10cc 5392ff54       84     01ca1120 5392ffa0       84     01ca1174 5392ffec       84     01ca11c8 5392ffec       84     total 0 objects Statistics:      MT    Count    TotalSize Class Name 5392ffa0        1           84 System.ExecutionEngineException 5392ff54        1           84 System.StackOverflowException 5392ff08        1           84 System.OutOfMemoryException 5392fdc4        1           84 System.Exception 5392ffec        2          168 System.Threading.ThreadAbortException Total 6 objects 0:004> !dumpheap -type Exception -short 01ca1024 01ca1078 01ca10cc 01ca1120 01ca1174 01ca11c8

This is a bit surprising, compared to the output from PSSCOR2 :

0:004> !dumpheap -type *Exception Loading the heap objects into our cache. Address       MT     Size 01cd1024 57800d94       72    0 System.OutOfMemoryException 01cd106c 57800e24       72    0 System.StackOverflowException 01cd10b4 57800eb4       72    0 System.ExecutionEngineException 01cd10fc 57800f44       72    0 System.Threading.ThreadAbortException 01cd1144 57800f44       72    0 System.Threading.ThreadAbortException 0:004> !dumpheap -type *Exception -short 01cd1024 01cd106c 01cd10b4 01cd10fc 01cd1144

It happens on different systems and different .NET 4 applications (x86 and x64). Is this the expected output for DumpHeap in PSSCOR4 ?

  • Anonymous
    May 09, 2011
    You shouldn't see the lines being displayed twice.  I will look into that and update here with what I find out. Are you debugging a live process?

  • Anonymous
    May 09, 2011
    The behavior is the same for live and dump debugging.

  • Anonymous
    May 17, 2011
    Woohoo. I've been waiting for this since .NET 4.0 was released. Good see it finally!

  • Anonymous
    November 26, 2012
    Will there be a version to support .NET 4.5?

  • Anonymous
    November 30, 2012
    Duojiao, I am not sure as of right now.  I have actually moved on to work with Azure and one of my co-workers now owns psscor.  I will check with him but I don't have an update at this time.

  • Anonymous
    January 18, 2013
    The comment has been removed

  • Anonymous
    September 13, 2013
    Hi Any news on the psscor release for .NET 4.5?

  • Anonymous
    September 13, 2013
    Unfortunately not at this time, it is being worked on, but no updates as of now.