1.下载 减压 google-breakpad-read-only;
2. 安装 python 2.7.4版本 (网上说的 什么 2.3.x不行),并把安装目录加到 环境变量
3.
到 breakpad目录下,运行下面命令
\google-breakpad-read-only\src\tools\gyp>gyp.bat --n
o-circular-check "../../client/windows/breakpad_client.gyp"
会生成 breakpad_client.sln (网上 说的 没有 --no-circular-check, 也不能正确生成 sln )
4. 运行 crash_generation_app. 这个例子会启动另外线程来产生dump。 到c\dumps\ 目录下。
5. 这个例子程序默认 方式会触发 void CALLBACK CrashGenerationServer::OnDumpRequest(void* context, BOOLEAN) 来产生 dump。
当不启动 crashServer时, 即不执行 CrashServerStart(); 哪么 会用另外一种方式 来收集 dump(也是在另外线程):ExceptionHandler::ExceptionHandlerThreadMain
网上说第一种是在另外进程,实际应该还是 线程,而且,第一种方式,有些crash dump文件 收集起来是 0kb的。 第二种方法都能成功。