{"id":15195136,"url":"https://github.com/federicostra/dbgmacro.jl","last_synced_at":"2026-02-17T18:35:42.727Z","repository":{"id":61797697,"uuid":"316586363","full_name":"FedericoStra/DbgMacro.jl","owner":"FedericoStra","description":"Debugging macros","archived":false,"fork":false,"pushed_at":"2022-02-05T11:02:28.000Z","size":153,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T01:37:57.353Z","etag":null,"topics":["debug","debugging","julia","macro"],"latest_commit_sha":null,"homepage":"","language":"Julia","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/FedericoStra.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":"2020-11-27T19:42:06.000Z","updated_at":"2022-02-05T11:01:12.000Z","dependencies_parsed_at":"2022-10-21T11:15:18.747Z","dependency_job_id":null,"html_url":"https://github.com/FedericoStra/DbgMacro.jl","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedericoStra%2FDbgMacro.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedericoStra%2FDbgMacro.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedericoStra%2FDbgMacro.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedericoStra%2FDbgMacro.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FedericoStra","download_url":"https://codeload.github.com/FedericoStra/DbgMacro.jl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241381521,"owners_count":19953749,"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":["debug","debugging","julia","macro"],"created_at":"2024-09-27T23:06:41.072Z","updated_at":"2025-10-09T19:43:47.844Z","avatar_url":"https://github.com/FedericoStra.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DbgMacro.jl\n\n\u003c!-- ![Lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg) --\u003e\n![Lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)\u003c!--\n![Lifecycle](https://img.shields.io/badge/lifecycle-stable-green.svg)\n![Lifecycle](https://img.shields.io/badge/lifecycle-retired-orange.svg)\n![Lifecycle](https://img.shields.io/badge/lifecycle-archived-red.svg)\n![Lifecycle](https://img.shields.io/badge/lifecycle-dormant-blue.svg) --\u003e\n[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://FedericoStra.github.io/DbgMacro.jl/stable)\n[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://FedericoStra.github.io/DbgMacro.jl/dev)\n[![Build Status](https://github.com/FedericoStra/DbgMacro.jl/workflows/CI/badge.svg)](https://github.com/FedericoStra/DbgMacro.jl/actions)\n[![Code Style: Blue](https://img.shields.io/badge/code%20style-blue-4495d1.svg)](https://github.com/invenia/BlueStyle)\n[![ColPrac: Contributor's Guide on Collaborative Practices for Community Packages](https://img.shields.io/badge/ColPrac-Contributor's%20Guide-blueviolet)](https://github.com/SciML/ColPrac)\n\nThis package provides four macros: `@dbg`, `@dumpct`, `@dumprt` and `@qn`.\n\nWhen executing\n\n```julia\n@dbg ex1 ex2 ex3 ...\n```\n\nthe macro generates code that displays all the expressions in the same way as `@show` does, each on a separate line,\npreceded by the location in the format `module:file:line`. The output goes to `stderr`. Useful for debugging.\n\nIt is inspired by Rust [`dbg!`](https://doc.rust-lang.org/std/macro.dbg.html) macro.\n\nThe macros `@dumpct` and `@dumprt`\n\n```julia\n@dumpct expression\n@dumprt expression\n```\n\ndump the provided expression at compile-time or run-time respectively.\n\nThe macro `@qn`\n\n```julia\n@qn expression\n```\n\nreturns the quoted expression without interpolating contained `$`.\n\n## Examples\n\n```julia\njulia\u003e using DbgMacro\n\njulia\u003e m = [1 2; 3 4]\n2×2 Matrix{Int64}:\n 1  2\n 3  4\n\njulia\u003e @dbg 1+2 \"Hello\" m\nMain:REPL[3]:1  1 + 2 = 3\nMain:REPL[3]:1  \"Hello\" = \"Hello\"\nMain:REPL[3]:1  m = [1 2; 3 4]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedericostra%2Fdbgmacro.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffedericostra%2Fdbgmacro.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedericostra%2Fdbgmacro.jl/lists"}