Home > Citrix, Debugging > Debugging for Starters – II

Debugging for Starters – II

December 1st, 2011 Leave a comment Go to comments
 

Debugging for Starters – II

First blog in this series is -> http://blog.lkctx.com/debugging-for-starters-i/

So we already discussed some terms in above blog, now let’s see how we can create a dump (as we are going to concentrate more on Dump analysis then live-debugging techniques).

Creating a Dump – There are different ways to create User dumps – automatically andor manually.

This will help to capture the dump in case application crash. From Windows Vista onwards, you can use Task Manager to create a dump of any process. This will be helpful if you are troubleshooting issues related CPU spikes in a process.

Need to force a dump – In case you need to force to create a dump e.g. in case of ServerApplications hang, then you can try below method: -

Verifying if Default Debugger is right – In some case you may experience that though you have configured the utility to capture the dump, however, it is not generating any dump. For this, you can use  TestWER  (formerly known as TestDefaultDebugger) – http://support.citrix.com/article/CTX111901 . this is a very simple and useful utility to ensure that you have some debugger enabled on your server, it crashed itself to generate a dump.

DumpCheck – Another very helpful utility to verify dump. This will ensure that the dump you have captured is valid for analysis. This will be helpful in case you have to send dump for further analysis to Citrix Support or Microsoft Support. It install as explorer extension. You can download it from -> http://support.citrix.com/article/CTX108825

Windbg – And finally, Windbg to analyszeopen the dump. This is part of Debugging Tools for Windows and you can download it from -> http://www.microsoft.com/whdc/devtools/debugging/debugstart.mspx

In next article, I will document steps require to open a dump in Windbg. I will also try to document  steps require to troubleshoot some common issues related to crash, hangs, CPU Spikes, etc; and will add some more tools as and when require.

  1. December 9th, 2011 at 12:12 | #1

    Great post, I admire the writing style :) A little off topic here but what theme are you using? Looks pretty cool.
    Android Phones

  2. December 11th, 2011 at 13:13 | #2

    You actually make it seem so easy with your presentation but I find this matter to be actually something which I think I would never understand. It seems too complicated and very broad for me. I’m looking forward for your next post, I’ll try to get the hang of it!

  3. May 31st, 2012 at 18:29 | #3

    Fine post bro

  1. December 25th, 2011 at 19:41 | #1
  2. January 14th, 2013 at 01:04 | #2