JUST DO IT ~

我只想当个程序员

windows core 文件生成

 

先确保执行这个. win7 以上才支持 WER windows error report 功能 .

windows 弹出提示框, 然后进程管理器,右键手工导出也行.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps]
"DumpFolder"="c:\\"
"DumpCount"=dword:00000030
"DumpType"=dword:00000002
"CustomDumpFlags"=dword:00000000

c++ debug版本 + pdb文件

另外需要注意不是所有情况都生成core.

windows 改了注册表不生成core的原因:

Requirements and limitations

· Debugging dump files of optimized code can be confusing. For example, compiler inlining of functions can result in unexpected call stacks and other optimizations might change the lifetime of variables.

· Dump files from 64-bit machines must be debugged on an instance of Visual Studio that is running on a 64-bit computer.

· In versions of Visual Studio before VS 2013, dumps of 32-bit apps that were run on 64-bit machines that were collected by some tools (such as Task Manager and 64-bit WinDbg) could not be opened in Visual Studio. This limitation has been removed in VS 2013.

· Visual Studio can debug dump files of native apps from ARM devices. Visual Studio can also debug apps dump files of managed apps from ARM devices, but only in the native debugger.

· To debug kernel-mode dump files in Visual Studio 2013, download the Windows 8.1 Version of Debugging Tools for Windows. See Kernel Debugging in Visual Studio.

· Visual Studio can't debug dump files saved in the older dump format known as a full user-mode dump. Note that a full user-mode dump is not the same a dump with heap.

· To debug with the SOS.dll (SOS Debugging Extension) in Visual Studio, you must install the Debugging Tools for Windows that is part of the Windows Driver Kit (WDK). See Windows 8.1 Preview: Download kits, bits, and tools.

 

参考:

Collecting User-Mode Dumps   --注册表

http://msdn.microsoft.com/en-us/library/windows/desktop/bb787181(v=vs.85).aspx

 

Crash Dump Analysis  --- c++ 自己生成dump

http://msdn.microsoft.com/en-us/library/windows/desktop/ee416349(v=vs.85).aspx 

 

Use Dump Files to Debug App Crashes and Hangs in Visual Studio

http://msdn.microsoft.com/en-us/library/d5zhxt22.aspx#bkmk_requirements_and_limitations

 

Attach to Running Processes with the Visual Studio Debugger

http://msdn.microsoft.com/en-us/library/3s68z0b3.aspx

Just-In-Time Debugging in Visual Studio  ------- 还没看

http://msdn.microsoft.com/en-us/library/5hs4b7a6.aspx

posted on 2014-12-17 10:44 小高 阅读(661) 评论(0)  编辑  收藏 所属分类: C


只有注册用户登录后才能发表评论。


网站导航:
 

导航

<2014年12月>
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

统计

常用链接

留言簿(3)

随笔分类(352)

收藏夹(19)

关注的blog

手册

搜索

积分与排名

最新评论

阅读排行榜

评论排行榜