{"id":15497398,"url":"https://github.com/heapwolf/debug","last_synced_at":"2025-08-24T21:23:36.691Z","repository":{"id":20092530,"uuid":"23361848","full_name":"heapwolf/debug","owner":"heapwolf","description":"A small debugging library for C++","archived":false,"fork":false,"pushed_at":"2019-07-05T21:56:07.000Z","size":46,"stargazers_count":31,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-18T14:49:15.031Z","etag":null,"topics":["cxx","cxx2a","debug","debugging","logging"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heapwolf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-26T18:12:47.000Z","updated_at":"2023-11-18T16:54:07.000Z","dependencies_parsed_at":"2022-09-02T13:51:29.734Z","dependency_job_id":null,"html_url":"https://github.com/heapwolf/debug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/heapwolf/debug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fdebug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fdebug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fdebug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fdebug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heapwolf","download_url":"https://codeload.github.com/heapwolf/debug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fdebug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271953141,"owners_count":24849290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cxx","cxx2a","debug","debugging","logging"],"created_at":"2024-10-02T08:33:23.195Z","updated_at":"2025-08-24T21:23:36.644Z","avatar_url":"https://github.com/heapwolf.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SYNOPSIS\nA minimalist debugging library inspired by [this][0].\n\n# USAGE\n\n#### INSTALL\nThis module is designed to work with the [`datcxx`][0] build tool. To add this\nmodule to your project us the following command...\n\n```bash\nbuild add heapwolf/debug\n```\n\n#### CODE\nConstruct an instance of `Debug` with a name. The instance will allow you to\ntoggle the debug output for different parts of your program.\n\nThe DEBUG environment variable is used to enable these based on delimited names.\n\n```c++\n#include \"./deps/heapwolf/debug/index.hxx\"\n\nDebug debug(\"demo\");\nDebug debug3(\"demo:beep\");\n\nvoid f3 () {\n  Debug debug2(\"demo:boop\");\n  debug2(\"running function f3\");\n  debug3(\"running function f3\");\n}\n\nvoid f2 () {\n  debug(\"running function f2\");\n  f3();\n}\n\nint main () {\n  debug(\"starting program\");\n  f2();\n  debug(\"ending program\");\n  return 0;\n}\n```\n\n#### OUTPUT\n\nWhen actively developing an application it can be useful to see when the time\nspent between one debug() call and the next. Suppose for example you invoke\ndebug(...) before requesting a resource, and after as well, the \"+NNNms\" will\nshow you how much time was spent between calls.\n\n![example](/docs/screenshot.png)\n\n\n# TEST\n\n```bash\nbuild test\n```\n\n\n# API\n\n## CONSTRUCTOR\n\n### Debug d(const std::string\u0026 name[, std::ostream\u0026 stream])\nConstruct with a name, optionally specify an output stream.\n\n[0]:https://github.com/visionmedia/debug\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapwolf%2Fdebug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheapwolf%2Fdebug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapwolf%2Fdebug/lists"}