Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

SELA Developer Days 2011 - C++ Debugging

DZone's Guide to

SELA Developer Days 2011 - C++ Debugging

·
Free Resource

I’m keeping up with the updates from the SELA Developer Days conference. Yesterday our classes were full to the brim with attendees – some of the sessions delivered were Parallel Programming in .NET 4.0, Introduction to Windows Phone 7, and a feature-packed day on TFS 2010 and Visual Studio 2010.

image

I delivered yesterday a session on C++ debugging, in which we covered the following topics:

  • How to read x86 and x64 assembly listings created by the C/C++ compilers
  • How to match debugging symbols to the debugged process or dump
  • How to generate crash dumps and hangs dumps
  • How to analyze crash dumps in Visual Studio 2010 and how to perform initial automatic analysis in WinDbg
  • How to use UMDH to find a memory leak in a C++ application
  • How to traverse wait chains between critical sections, threads, and other synchronization mechanisms
  • How to diagnose heap corruptions and catch them at the earliest point possible
  • How to approach stack corruptions with minimal information

During this very busy day we also had the chance to do a little hands-on work – a one-hour lab on generating crash dumps and pinpointing the crash cause in Visual Studio and WinDbg, and a half-hour lab on debugging a deadlock in an MFC application.

If you attended my session and have any further questions, I’ll appreciate if you let me know, as always. Today and tomorrow I’m delivering two more sessions, so stay tuned for more updates.

Topics:

Published at DZone with permission of Sasha Goldshtein, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}