{"id":42667271,"url":"https://github.com/fireflycons/go-debugger","last_synced_at":"2026-01-29T10:11:25.553Z","repository":{"id":331090494,"uuid":"1125159256","full_name":"fireflycons/go-debugger","owner":"fireflycons","description":"Debugger utilities for Go projects","archived":false,"fork":false,"pushed_at":"2025-12-31T07:42:14.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-03T00:57:35.237Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/fireflycons.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-30T08:38:19.000Z","updated_at":"2025-12-31T07:42:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/fireflycons/go-debugger","commit_stats":null,"previous_names":["fireflycons/go-debugger"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/fireflycons/go-debugger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireflycons%2Fgo-debugger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireflycons%2Fgo-debugger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireflycons%2Fgo-debugger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireflycons%2Fgo-debugger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fireflycons","download_url":"https://codeload.github.com/fireflycons/go-debugger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fireflycons%2Fgo-debugger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28875450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T09:47:23.353Z","status":"ssl_error","status_checked_at":"2026-01-29T09:47:19.357Z","response_time":59,"last_error":"SSL_read: 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":[],"created_at":"2026-01-29T10:11:24.944Z","updated_at":"2026-01-29T10:11:25.532Z","avatar_url":"https://github.com/fireflycons.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- Code generated by gomarkdoc. DO NOT EDIT --\u003e\n\n# debugger\n\n```go\nimport \"github.com/fireflycons/go-debugger\"\n```\n\nPackage debugger contains utilities for managing debug sessions of the application this package is imported into.\n\nSupported archtectures and what's detected:\n\n- Linux: any debugger\n- Windows: any debugger\n- MacOS: dlv or gdb\n- FreeBSD \\(64 bit\\): dlv or gdb\n\n## Index\n\n- [func Attached\\(\\) bool](\u003c#Attached\u003e)\n- [func Poll\\(ctx context.Context, freq time.Duration\\)](\u003c#Poll\u003e)\n\n\n\u003ca name=\"Attached\"\u003e\u003c/a\u003e\n## func Attached\n\n```go\nfunc Attached() bool\n```\n\nAttached returns true if this process has an attached debugger.\n\nThis reads from a variable that is initialized asynchronously, therefore there is zero cost to call it. It is initialized when the process starts, therefore will start as true if launched by a debugger, e.g. an IDE interactive session.\n\nExample use case would be to dynamically set a longer context timeout such that it does not cancel in the middle of a debugging session.\n\nNote that the value will not become true if you attach a debugger to an already running process, unless you have started a poll.\n\n\u003ca name=\"Poll\"\u003e\u003c/a\u003e\n## func Poll\n\n```go\nfunc Poll(ctx context.Context, freq time.Duration)\n```\n\nPoll starts a background task to continuously poll at the frequency specified for a debugger attaching after the process has started, and stop polling when the context is cancelled. The value returned by Attached\\(\\) is updated accordingly.\n\nThis function returns immediately upon starting the poll goroutine.\n\nCurrently only supported for Linux and Windows. It is a no\\-op for any other OS. You probably don't want to do this in production builds.\n\nGenerated by [gomarkdoc](\u003chttps://github.com/princjef/gomarkdoc\u003e)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffireflycons%2Fgo-debugger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffireflycons%2Fgo-debugger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffireflycons%2Fgo-debugger/lists"}