# tianzuo.Kongtong **Repository Path**: zhengtianzuo/tianzuo.Kongtong ## Basic Information - **Project Name**: tianzuo.Kongtong - **Description**: Windows平台下应用程序发生崩溃时, 生成崩溃转储文件用于分析定位到崩溃代码行,同时生成系统环境相关信息。(When an application crashes on a Windows platform, a crash dump file is generated to analyze the lines of collapsed code and generate informatio - **Primary Language**: C++ - **License**: MIT - **Default Branch**: master - **Homepage**: https://zhengtianzuo.com - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-29 - **Last Updated**: 2025-12-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: Windows, crash-reporting, crash, crash-dump ## README

简体中文 | English

![](img/logo.jpg) ### 天佐.崆峒印 ![](https://img.shields.io/badge/release-1.0.0.0-blue.svg) ![](https://img.shields.io/badge/date-24.1.1-orange.svg) |||| |--|--|--| |操作系统|![](https://img.shields.io/badge/os-windows_7+-blue.svg) || |编译器|![](https://img.shields.io/badge/c++-11-blue.svg) ![](https://img.shields.io/badge/msvc-14.0-blue.svg) ![](https://img.shields.io/badge/msvc-14.1-blue.svg) ![](https://img.shields.io/badge/msvc-14.2-blue.svg) ![](https://img.shields.io/badge/msvc-14.3-blue.svg) || |编程语言|![](img/C.png) ![](img/C__.png) || # 简介 ![](img/alchemy_tianzuo.Kongtong.jpg) **天佐.崆峒印** Windows平台下应用程序发生崩溃时, 生成崩溃转储文件用于分析定位到崩溃代码行,同时生成系统环境相关信息。 **传说:** 崆峒海上不死龙族的护守神器,其上刻塑有五方天帝形貌,并有玉龙盘绕。自古相传得到它的人,就能拥有天下,也有人传说它能让人不老不死。 # 目标 开发过程中偶尔遇到程序崩溃的情况,需要分析崩溃原因和定位到代码行,同时需要分析环境因素等。 ![](img/tianzuo.Kongtong.png) # 功能 - 🧩 集成简单 - 📝 可选择生成dmp与日志 - 🪐 日志多语言(简体中文/English) - ⛓ 支持线程内检测 # 截图 **通过dmp文件分析定位崩溃代码行:** Visual Studio 分析dmp文件 ![](img/screenshot.png) WinDbg 分析dmp文件 ![](img/screenshot3.png) **环境日志:** ![](img/screenshot2.png) ## 安装 项目中启用异常检测 ### Visual Studio ![](img/screenshot4.png) Visual Studio中开启C++异常检测 ![](img/screenshot5.png) Visual Studio中开启生成pdb文件 ### Qt Creator ![](img/screenshot6.png) Qt Creator中开启生成pdb文件 ```cpp CONFIG += force_debug_info CONFIG += senarate_debug_info ``` # 例子 ```cpp #include "tianzuo.KongtongTest.h" #include "../../include/tianzuo.Kongtong.h" #include void init(int argc, char* argv[]) { tianzuo_KongtongTest test; test.doSomething(); } int main(int argc, char* argv[]) { HINSTANCE hKongtong = LoadLibrary(L"tianzuo.Kongtong.dll"); if (!hKongtong) { init(argc, argv); return(0); } tianzuo_Kongtong_get_exception getException = (tianzuo_Kongtong_get_exception)GetProcAddress(hKongtong, "Kongtong_get_exception"); if (!getException) return -1; __try { init(argc, argv); } __except (getException(GetExceptionInformation(), Kongtong_create_normal, 0)) { } if (hKongtong != nullptr) { getException = nullptr; FreeLibrary(hKongtong); hKongtong = nullptr; } return(0); } ``` # 下载 ||||| |--|--|--|--| |[![立即下载](img/com_btnGitHub.svg)](https://github.com/zhengtianzuo/tianzuo.Kongtong/releases)|[![立即下载](img/com_btnGitee.svg)](https://gitee.com/zhengtianzuo/tianzuo.Kongtong/releases)|[![立即下载](img/down_baidu.svg)](https://pan.baidu.com/s/1TnsGHWpFG_NFRrtkZsQcvA?pwd=1234)|[![立即下载](img/down_weiyun.svg)](https://share.weiyun.com/euPExPUJ)| # 关于 ## 联系方式 |||| |--|--|--| |作者|郑天佐|| |QQ|278969898|| |邮箱|camelsoft@163.com|| |主页|[http://www.camelstudio.cn](http://www.camelstudio.cn)|| |博客|[http://blog.csdn.net/zhengtianzuo06](http://blog.csdn.net/zhengtianzuo06)|| |github|[https://github.com/zhengtianzuo](https://github.com/zhengtianzuo)|| |gitee|[https://gitee.com/zhengtianzuo](https://gitee.com/zhengtianzuo)|| |QQ群|199672080|| ![](img/allinone.png) ||||| |--|--|--|--| |加QQ好友|加微信好友|微信打赏|支付宝打赏|