{"id":25351252,"url":"https://github.com/kyrylo-sovailo/dumb-way-to-debug","last_synced_at":"2025-07-29T13:10:16.427Z","repository":{"id":243743953,"uuid":"812954794","full_name":"kyrylo-sovailo/dumb-way-to-debug","owner":"kyrylo-sovailo","description":"When there is no debugger and printf's ain't cutting it","archived":false,"fork":false,"pushed_at":"2024-10-03T19:27:27.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-14T18:01:45.979Z","etag":null,"topics":["cpp","debugging","macros"],"latest_commit_sha":null,"homepage":"","language":"C++","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/kyrylo-sovailo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2024-06-10T08:19:40.000Z","updated_at":"2024-12-21T16:52:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"60beb738-11a0-451c-98d6-56b2595ca031","html_url":"https://github.com/kyrylo-sovailo/dumb-way-to-debug","commit_stats":null,"previous_names":["kyrylo-sovailo/dumb-way-to-debug"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyrylo-sovailo%2Fdumb-way-to-debug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyrylo-sovailo%2Fdumb-way-to-debug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyrylo-sovailo%2Fdumb-way-to-debug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyrylo-sovailo%2Fdumb-way-to-debug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kyrylo-sovailo","download_url":"https://codeload.github.com/kyrylo-sovailo/dumb-way-to-debug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247941711,"owners_count":21022037,"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":["cpp","debugging","macros"],"created_at":"2025-02-14T18:01:07.442Z","updated_at":"2025-04-08T22:49:09.510Z","avatar_url":"https://github.com/kyrylo-sovailo.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome to Dumb-Ways-to-Debug!\n\nYou already tried all smart ways to debug? Your platform has no debugger? Or is a serial port the only way to communicate with the software? Anyway, you found the right repo.\n\n# Usage\n```\n//Non-debugged version\nint add(int a, int b) { return a + b; }\n\n//Debugged version\nDWD_PRINT_TRACE(int, add, int, a, int, b) { return a + b; }\n```\n\nThe functions need to be declared with `DWD_PRINT_*` or `DWD_CATCH_*` macros. Both will print  the function call log (name and arguments) when your program calls `DWD::EXIT()`. The difference is that `DWD_CATCH_*` prints only when the function fails, `DWD_PRINT_*` will print in any case, including normal return command. Also the program will print only if the function's log level is higher or equal to `DWD::LOGLEVEL`.\n\n# Compilation\n\nPaste `.cpp` files into your project. Implement `dwd_desktop.h` for your platform (for example, serial port of your favorite microcontroller). You are on your own here.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyrylo-sovailo%2Fdumb-way-to-debug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkyrylo-sovailo%2Fdumb-way-to-debug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyrylo-sovailo%2Fdumb-way-to-debug/lists"}