{"id":29978970,"url":"https://github.com/rev-roastedduck/debugsuite","last_synced_at":"2026-04-20T13:07:50.435Z","repository":{"id":307446950,"uuid":"1029529938","full_name":"Rev-RoastedDuck/DebugSuite","owner":"Rev-RoastedDuck","description":"A lightweight and flexible debugging and logging utility for C projects","archived":false,"fork":false,"pushed_at":"2026-04-19T04:19:09.000Z","size":75,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-19T06:24:41.370Z","etag":null,"topics":["c","cpp","debug","terminal"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rev-RoastedDuck.png","metadata":{"files":{"readme":"Docs/README_cn.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-31T07:23:53.000Z","updated_at":"2026-04-19T04:19:13.000Z","dependencies_parsed_at":"2025-07-31T11:25:11.680Z","dependency_job_id":null,"html_url":"https://github.com/Rev-RoastedDuck/DebugSuite","commit_stats":null,"previous_names":["rev-roastedduck/debugsuite"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Rev-RoastedDuck/DebugSuite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rev-RoastedDuck%2FDebugSuite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rev-RoastedDuck%2FDebugSuite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rev-RoastedDuck%2FDebugSuite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rev-RoastedDuck%2FDebugSuite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rev-RoastedDuck","download_url":"https://codeload.github.com/Rev-RoastedDuck/DebugSuite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rev-RoastedDuck%2FDebugSuite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32048474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","cpp","debug","terminal"],"created_at":"2025-08-04T12:41:39.359Z","updated_at":"2026-04-20T13:07:50.430Z","avatar_url":"https://github.com/Rev-RoastedDuck.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"../Docs/images/icon.webp\" height=\"150\"\u003e\n  \u003ch1\u003eDebugSuite\u003c/h1\u003e\n  \u003cspan\u003e一个轻量级且灵活的 C 项目调试和日志工具\u003c/span\u003e\n\u003c/div\u003e\n\u003cbr\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/License-Apache2.0-green?logoColor=63%2C%20185%2C%2017\u0026label=license\u0026labelColor=63%2C%20185%2C%2017\u0026color=63%2C%20185%2C%2017\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/Language-C-green?logoColor=63%2C%20185%2C%2017\u0026labelColor=63%2C%20185%2C%2017\u0026color=63%2C%20185%2C%2017\"\u003e\n\u003c/div\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"../README.md\"\u003eEnglish\u003c/a\u003e | \u003ca href=\"\"\u003e简体中文\u003c/a\u003e\n\u003c/p\u003e\n\n## 项目介绍\n**DebugSuite** 是一个专为 C/C++ 项目设计的轻量级、模块化调试和日志工具。它提供了彩色日志输出、执行时间测量、值打印和断言检查等便捷的宏。DebugSuite 适用于嵌入式开发、应用调试和快速原型开发，可以轻松集成到任何 C 项目中。\n\n![feature](../Docs/images/feature.png)\n\n## 功能特性\n- 多种日志级别：debug、info、notice、warning、error、fatal、success\n- 彩色格式化控制台输出，便于日志区分\n- 执行时间测量宏，用于性能分析\n- 方便的变量和表达式值打印\n- 灵活的断言宏，提供详细的错误报告\n- 最小化依赖，易于移植和扩展\n\n\n## 目录结构\n- `DebugSuite/`: DebugSuite 核心实现 (`debug_suite.c`、`debug_suite.h`)\n- `Test/`: DebugSuite 的示例和测试代码\n\n## 快速开始\n### 1. 克隆仓库\n```bash\ngit clone https://github.com/Rev-RoastedDuck/DebugSuite.git\ncd DebugSuite\n```\n\n### 2. 构建并运行测试项目\n```bash\ncd Test\ngcc -I../DebugSuite -o start test.c ../DebugSuite/debug_suite.c\n./start\n```\n\n### 3. 集成到你的项目\n- 将 `DebugSuite/` 目录下的 `debug_suite.h` 和 `debug_suite.c` 复制到你的项目中。\n- 在源文件中包含 `debug_suite.h`。\n- 使用提供的宏进行日志、计时和断言。\n\n使用示例：\n\n```c\n#include \"debug_suite.h\"\n\nint main(void) {\n    int a = 42;\n    float b = 3.14f;\n\n    DEBUG_PRINT_INFO(1, \"应用程序已启动。a=%d, b=%.2f\", a, b);\n    TIME_TAKEN_START(1);\n    // ... 你的代码 ...\n    TIME_TAKEN_END;\n    DEBUG_ASSERT(a \u003e 0);\n    return 0;\n}\n```\n\n## 文档\n查看 [`DebugSuite/debug_suite.h`](../DebugSuite/debug_suite.h) 中的注释以获取 API 使用和宏描述。\n\n## 许可证\n本项目 **DebugSuite** 采用 Apache License 2.0 许可证发布。详情请参考 [**LICENSE**](../LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frev-roastedduck%2Fdebugsuite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frev-roastedduck%2Fdebugsuite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frev-roastedduck%2Fdebugsuite/lists"}