简体   繁体   中英

How do I perform post-mortem debugging for Windows applications?

I develop unmanaged C++ applications in MSVC2008. And occasionally the application crashes at the customer site. I found an article on this . But it was written in 2002 for Visual Studio .NET. Has things changed since? Can the same technique be used? Is there a newer method?

If you are debugging C and C++ apps for Windows, you want to learn how to use WinDBG (distributed as "debugging tools for Windows") . It has a bit of a learning curve, but the documentation is really good and it really is the best the platform has to offer.

As to your question, you can view a crash dump with windbg -z <dump filename> .

Usually release mode binaries (which typically run at customer site) are built with optimization (for speed/memory etc). Troubleshooting optimized binaries is usually not as easy.

So, first check if the crash is reproducible with release mode binaries built without optimization. If yes, then the job is easy (ier).

Here is some info.

Also look at a tool called ADPlus from microsoft

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM