{"id":13627581,"url":"https://github.com/robusta-dev/debug-toolkit","last_synced_at":"2025-04-17T00:32:01.348Z","repository":{"id":44572046,"uuid":"379885726","full_name":"robusta-dev/debug-toolkit","owner":"robusta-dev","description":"A modern code-injection framework for Python. Like Pyrasite but Kubernetes-aware.","archived":false,"fork":false,"pushed_at":"2024-10-15T14:42:50.000Z","size":48,"stargazers_count":58,"open_issues_count":1,"forks_count":3,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-10-24T07:34:03.516Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://robusta.dev/","language":"Python","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/robusta-dev.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}},"created_at":"2021-06-24T10:23:04.000Z","updated_at":"2024-10-15T14:43:59.000Z","dependencies_parsed_at":"2024-06-11T11:34:22.179Z","dependency_job_id":"19a3cd00-f02e-40d0-9e7e-681ea3d55da7","html_url":"https://github.com/robusta-dev/debug-toolkit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robusta-dev%2Fdebug-toolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robusta-dev%2Fdebug-toolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robusta-dev%2Fdebug-toolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robusta-dev%2Fdebug-toolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robusta-dev","download_url":"https://codeload.github.com/robusta-dev/debug-toolkit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223735033,"owners_count":17194030,"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-01T22:00:35.963Z","updated_at":"2024-11-08T18:30:39.629Z","avatar_url":"https://github.com/robusta-dev.png","language":"Python","readme":"# TL;DR\nA modern code-injection framework for Python + useful utilities.\n\nThis is like [Pyrasite](https://github.com/lmacken/pyrasite) but without the bugs and Kubernetes-aware.\n\nThis powers many [Robusta](http://robusta.dev/) features. You should probably use Robusta instead of using this directly.\n\n# Overview\nThis repo contains source code for the docker container that powers the following [Robusta](http://robusta.dev/) features:\n\n1. Inject code into Python apps\n2. [Attach a VSCode debugger to any Python application running on Kubernetes](https://docs.robusta.dev/master/catalog/actions/python-troubleshooting.html#python-debugger) - this works by injecting [debugpy](https://github.com/microsoft/debugpy/)\n3. [Profile cpu and memory usage of Python apps](https://docs.robusta.dev/master/catalog/actions/python-troubleshooting.html#python-profiler) - this works by  wrapping PySpy (for CPU) and by injecting the `tracemalloc` library into the target process (for memory)\n4. List processes in any pod (not just Python)\n \nEssentially, it is two things:\n1. A [Pyrasite](https://github.com/lmacken/pyrasite) replacement that fixes deadlocks and other issues.\n2. A Docker container containing that Pyrasite replacement, which is used by Robusta to troubleshoot and debug containers\n\n# Adding new python injection payloads\n1. Add a new payload in src/debug_toolkit/payloads\n   1. Make sure ALL of your code is inside the `entrypoint` function, even imports. Errors are not handled or reported for code outside of the entrypoint.\n2. Add a wrapper command in src/debug_toolkit/main.py\n\n# Releasing a new version\n\n1. Bump the version in pyproject.toml \n2. Run the following, replacing \"v4\" with the tag of the new release.\n\n```\nskaffold build --tag v4\n```\n\nThat is all. We're not pushing versions to pypi right now.\n","funding_links":[],"categories":["Projects by main language"],"sub_categories":["python"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobusta-dev%2Fdebug-toolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobusta-dev%2Fdebug-toolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobusta-dev%2Fdebug-toolkit/lists"}