{"id":13507786,"url":"https://github.com/fishcakez/dbg","last_synced_at":"2025-04-05T16:06:28.733Z","repository":{"id":15963097,"uuid":"18705742","full_name":"fishcakez/dbg","owner":"fishcakez","description":"Tracing for Elixir","archived":false,"fork":false,"pushed_at":"2018-01-24T12:10:21.000Z","size":52,"stargazers_count":161,"open_issues_count":4,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-29T15:05:27.244Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://hexdocs.pm/dbg/","language":"Elixir","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/fishcakez.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}},"created_at":"2014-04-12T14:20:52.000Z","updated_at":"2024-10-04T16:15:59.000Z","dependencies_parsed_at":"2022-09-26T20:41:28.823Z","dependency_job_id":null,"html_url":"https://github.com/fishcakez/dbg","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fishcakez%2Fdbg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fishcakez%2Fdbg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fishcakez%2Fdbg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fishcakez%2Fdbg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fishcakez","download_url":"https://codeload.github.com/fishcakez/dbg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247361686,"owners_count":20926643,"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","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":"2024-08-01T02:00:39.067Z","updated_at":"2025-04-05T16:06:28.688Z","avatar_url":"https://github.com/fishcakez.png","language":"Elixir","funding_links":[],"categories":["Debugging"],"sub_categories":[],"readme":"# Dbg\n\n`Dbg` provides functions for tracing events in the BEAM VM.\n\nMany events, including function calls and return, exception raising, sending\nand receiving messages, spawning, exiting, linking, scheduling and garbage\ncollection can be traced across a cluster of nodes using `Dbg`.\n\n## Try it out\nClone the repo:\n```\ngit clone https://github.com/fishcakez/dbg.git\ncd dbg\nmix compile\niex -S mix\n```\nTo see the messages sent by the shell process:\n```elixir\nDbg.trace(:send)\n```\nClear all trace flags for current process:\n```elixir\nDbg.clear()\n```\nTo trace a call, add the `:call` trace flag to a process:\n```elixir\nDbg.trace(self(), :call)\n```\nThen add the function to traced calls:\n```elixir\nDbg.call(\u0026Map.new/0)\n```\nCall the function to see a trace message:\n```elixir\nMap.new()\n```\nCancel tracing for `Map.new/0`:\n```elixir\nDbg.cancel(\u0026Map.new/0)\n```\nAnd clear the trace flags for `self()`:\n```elixir\nDbg.clear(self())\n```\nTo reset all tracing:\n```elixir\nDbg.reset()\n```\n\n## Read The Docs\n\n`Dbg` allows much more sophisticated tracing. To get the docs:\n```\nmix deps.get\nMIX_ENV=docs mix docs\n```\n\n## Install As Dependency\n\nAs a dependency to a mix.es file:\n```elixir\ndef application() do\n  [applications: [:dbg]]\nend\n\ndef deps() do\n  [{:dbg, github: \"fishcakez/dbg\"}]\nend\n```\n\n## Compatibility With Erlang\n\n`Dbg` is a wrapper around OTP's `:dbg` module from the `:runtime_tools`\napplication. `:dbg` functions will work as normal and can be combined\nwith `Dbg` function calls.\n\n\n## License\n\nCopyright 2014 James Fish\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffishcakez%2Fdbg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffishcakez%2Fdbg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffishcakez%2Fdbg/lists"}