{"id":16027732,"url":"https://github.com/followtheprocess/debug","last_synced_at":"2026-03-12T10:34:21.200Z","repository":{"id":217708288,"uuid":"744486830","full_name":"FollowTheProcess/debug","owner":"FollowTheProcess","description":"Like Rust's dbg macro, but for Go!","archived":false,"fork":false,"pushed_at":"2025-08-25T11:23:41.000Z","size":74,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-25T13:20:28.466Z","etag":null,"topics":["debugging","golang","library"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FollowTheProcess.png","metadata":{"files":{"readme":"README.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":"2024-01-17T11:58:29.000Z","updated_at":"2025-08-25T11:23:43.000Z","dependencies_parsed_at":"2024-01-18T00:54:56.136Z","dependency_job_id":"9eb4b1cf-8433-4b80-8145-ba0c4151561a","html_url":"https://github.com/FollowTheProcess/debug","commit_stats":null,"previous_names":["followtheprocess/debug"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/FollowTheProcess/debug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FollowTheProcess%2Fdebug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FollowTheProcess%2Fdebug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FollowTheProcess%2Fdebug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FollowTheProcess%2Fdebug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FollowTheProcess","download_url":"https://codeload.github.com/FollowTheProcess/debug/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FollowTheProcess%2Fdebug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273854394,"owners_count":25180008,"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-09-06T02:00:13.247Z","response_time":2576,"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":["debugging","golang","library"],"created_at":"2024-10-08T20:23:18.488Z","updated_at":"2026-03-12T10:34:16.154Z","avatar_url":"https://github.com/FollowTheProcess.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Debug\n\n[![License](https://img.shields.io/github/license/FollowTheProcess/debug)](https://github.com/FollowTheProcess/debug)\n[![Go Reference](https://pkg.go.dev/badge/go.followtheprocess.codes/debug.svg)](https://pkg.go.dev/go.followtheprocess.codes/debug)\n[![Go Report Card](https://goreportcard.com/badge/github.com/FollowTheProcess/debug)](https://goreportcard.com/report/github.com/FollowTheProcess/debug)\n[![GitHub](https://img.shields.io/github/v/release/FollowTheProcess/debug?logo=github\u0026sort=semver)](https://github.com/FollowTheProcess/debug)\n[![CI](https://github.com/FollowTheProcess/debug/workflows/CI/badge.svg)](https://github.com/FollowTheProcess/debug/actions?query=workflow%3ACI)\n[![codecov](https://codecov.io/gh/FollowTheProcess/debug/branch/main/graph/badge.svg)](https://codecov.io/gh/FollowTheProcess/debug)\n\nLike Rust's [dbg macro], but for Go!\n\n## Project Description\n\n`debug` provides a simple, elegant mechanism to streamline \"print debugging\", inspired by Rust's [dbg macro]\n\n\u003e [!WARNING]\n\u003e This is not intended for logging in production, more to enable quick local debugging while iterating. `debug.Debug` should **not** make it into your production code\n\n## Installation\n\n```shell\ngo get go.followtheprocess.codes/debug@latest\n```\n\n## Quickstart\n\n### Before\n\n```go\npackage main\n\nimport \"fmt\"\n\nfunc main() {\n    something := \"hello\"\n    fmt.Printf(\"something = %s\\n\", something)\n}\n```\n\n```shell\nsomething = something\n```\n\n- Not ideal, need to manually type variable name\n- No source info, could easily get lost in a large program\n- Need to deal with fmt verbs\n\n### With `debug.Debug`\n\n```go\npackage main\n\nimport \"go.followtheprocess.codes/debug\"\n\nfunc main() {\n    something := \"hello\"\n    debug.Debug(something)\n}\n```\n\n```shell\nDEBUG: [/Users/you/projects/myproject/main.go:7:3] something = \"hello\"\n```\n\n- Source info, yay! 🎉\n- Variable name is handled for you\n- Can handle any valid go expression or value\n- No fmt print verbs\n\n### Credits\n\nThis package was created with [copier] and the [FollowTheProcess/go_copier] project template.\n\n[copier]: https://copier.readthedocs.io/en/stable/\n[FollowTheProcess/go_copier]: https://github.com/FollowTheProcess/go_copier\n[dbg macro]: https://doc.rust-lang.org/stable/std/macro.dbg.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffollowtheprocess%2Fdebug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffollowtheprocess%2Fdebug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffollowtheprocess%2Fdebug/lists"}