{"id":25460920,"url":"https://github.com/uefi-code/pythondbg","last_synced_at":"2025-11-03T09:30:36.395Z","repository":{"id":224152899,"uuid":"762563396","full_name":"UEFI-code/PythonDbg","owner":"UEFI-code","description":"Showing How to Tracing Python Code","archived":false,"fork":false,"pushed_at":"2024-02-24T05:58:34.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-14T23:19:46.113Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UEFI-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-02-24T04:08:16.000Z","updated_at":"2024-02-24T04:51:51.000Z","dependencies_parsed_at":"2024-02-24T05:27:40.977Z","dependency_job_id":"182e81e0-4bad-41e7-bb46-23b609fd8706","html_url":"https://github.com/UEFI-code/PythonDbg","commit_stats":null,"previous_names":["uefi-code/pythondbg"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UEFI-code%2FPythonDbg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UEFI-code%2FPythonDbg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UEFI-code%2FPythonDbg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UEFI-code%2FPythonDbg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UEFI-code","download_url":"https://codeload.github.com/UEFI-code/PythonDbg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239412468,"owners_count":19634016,"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":"2025-02-18T05:05:22.414Z","updated_at":"2025-11-03T09:30:36.332Z","avatar_url":"https://github.com/UEFI-code.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PythonDbg\n\nPythonDbgは、Pythonスクリプトのデバッグを支援するためのツールです。このツールは、スクリプトの実行中に関数呼び出しと行の実行をトレースし、それぞれのステップでローカル変数とグローバル変数の値を表示します。\n\n## 主な機能\n\n- 関数呼び出しのトレース\n- 行の実行のトレース\n- ローカル変数とグローバル変数の表示\n- myCuteDebuggerクラスを使用したデバッグセッションの開始\n- カスタムハンドラの登録\n\n## 使い方\n\n1. PythonDbgをクローンまたはダウンロードします。\n2. デバッグしたいPythonスクリプトを用意します。\n3. コマンドラインから以下のコマンドを実行します。\n\n```bash\npython dbg2.py \u003cscript_to_debug.py\u003e\n```\n\nこれにより、スクリプトの実行が開始され、各関数呼び出しと行の実行がトレースされます。各ステップで、\"Press Enter to continue\"と表示されるので、Enterキーを押すことで次のステップに進むことができます。\n\nまたは、myCuteDebuggerクラスを使用してデバッグセッションを開始することもできます。\n\n```python\nimport dbg2\nimport types\n\ndef my_new_cute_handler(self, filename, func_name, line_no, event, locals_dict, globals_dict):\n    # Your custom logic here\n    pass\n\nif __name__ == \"__main__\":\n    myCuteDbgger = dbg2.myCuteDebugger()\n    myCuteDbgger.my_cute_handler = types.MethodType(my_new_cute_handler, myCuteDbgger)\n    myCuteDbgger.start_debugger()\n```\n\n## 注意事項\n\n- このツールはデバッグ目的のみに使用してください。本番環境での使用は推奨されません。\n- 大規模なスクリプトのデバッグには時間がかかる場合があります。\n\n## ライセンス\n\nMIT License\n\n## 貢献\n\nバグの報告や機能の提案は、GitHubのIssueを通じてお願いします。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuefi-code%2Fpythondbg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuefi-code%2Fpythondbg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuefi-code%2Fpythondbg/lists"}