{"id":13645795,"url":"https://github.com/pgosar/chatgdb","last_synced_at":"2025-04-21T17:31:21.551Z","repository":{"id":149314734,"uuid":"621562062","full_name":"pgosar/ChatGDB","owner":"pgosar","description":"Harness the power of ChatGPT inside the GDB or LLDB debugger!","archived":false,"fork":false,"pushed_at":"2023-10-09T00:48:54.000Z","size":548,"stargazers_count":898,"open_issues_count":2,"forks_count":31,"subscribers_count":9,"default_branch":"main","last_synced_at":"2024-10-24T18:36:09.007Z","etag":null,"topics":["chatgpt","debugging-tool","gdb","gpt-3","lldb"],"latest_commit_sha":null,"homepage":"","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/pgosar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2023-03-30T23:16:31.000Z","updated_at":"2024-10-17T08:03:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"08fce6d6-9062-4557-ac91-f3f5fd8db2d1","html_url":"https://github.com/pgosar/ChatGDB","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgosar%2FChatGDB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgosar%2FChatGDB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgosar%2FChatGDB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgosar%2FChatGDB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pgosar","download_url":"https://codeload.github.com/pgosar/ChatGDB/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250100382,"owners_count":21374930,"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":["chatgpt","debugging-tool","gdb","gpt-3","lldb"],"created_at":"2024-08-02T01:02:42.014Z","updated_at":"2025-04-21T17:31:21.325Z","avatar_url":"https://github.com/pgosar.png","language":"Python","funding_links":[],"categories":["Others","Meta"],"sub_categories":[],"readme":"# ChatGDB\nHarness the power of ChatGPT inside the GDB/LLDB debugger!\n\n\nChatGDB is a tool designed to superpower your debugging experience with GDB or LLDB, debuggers for compiled languages. Use it to accelerate your debugging workflow by leveraging the power of ChatGPT to assist you while using GDB/LLDB! \n\nIt allows you to explain in natural language what you want to do, and then automatically execute the relevant command. Optionally, you can ask ChatGPT to explain the command it just ran or even pass in any question for it to answer. Focus on what's important - figuring out that nasty bug instead of chasing down GDB/LLDB commands at the tip of your tongue.\n\n![Image](https://lh5.googleusercontent.com/xZMLwWWxavqYjC3fyCIZJ0m-s-f-XEoiOeWGbxRrw3dWoukUoWzJJ4iiBkVO2Vtiyr4K6o0WkTs7B40TapeBPIYwgVRVhDXGVjB4tFYoKH3_nK847nYXl3pISB6dEP6Wp_o0uPlfJOjCrLspm0_VNw)\n\n## Contents\n\n1. [Installation](#installation-intructions)\n2. [Updating](#updating)\n3. [Usage](#usage)\n4. [Contributing](#contributing)\n5. [Getting Updates](#getting-updates)\n\n### Installation instructions\nFirst, make sure you install [pip](https://pip.pypa.io/en/stable/installation/). ChatGDB also\nrequires a python version of 3.3 or above.\n\nTo install, run the command \n\n```pip3 install chatgdb```. \n\nIt will create an executable called ```chatgdb``` that you will have to use to set your api key. \nTo do that, run the command\n\n```chatgdb -k \u003cAPI KEY\u003e ```\n\nYou can set the model to use. There are two possible options, ```gpt-3.5-turbo``` and ```gpt-4```(defaulting to the former):\n\n```chatgdb -m \u003cMODEL\u003e```\n\nIf you are using a non-official api provider, you can also set the api url:\n\n```chatgdb -u \u003capi-url\u003e```\n\nThis information is stored in text in the same directory as the installed script, which is currently in your python site packages\nfolder along with the main script. You can easily find this location by running the following in your terminal:\n\n``` python -m site --user-site```\n\nOptionally, you can also download the compressed files in the releases page to get the scripts directly.\nIf you do this, navigate to the ```chatgdb``` folder, and you can install with\n\n```pip3 install .```.\n\n### Updating\n\nTo update ChatGDB, run the following\n\n```pip3 install chatgdb --upgrade```\n\n\n### Usage\nFor GDB usage, I first recommend editing your ```$HOME/.gdbinit``` to source the main script automatically on startup. Run the following command:\n\n```echo \"source $(python -m site --user-site)/chatgdb/gdb.py\" \u003e $HOME/.gdbinit```\n\nThe same applies for LLDB. Edit your ```$HOME/.lldbinit``` and run the following command:\n\n```echo \"command script import $(python -m site --user-site)/chatgdb/lldb.py\" \u003e $HOME/.lldbinit```\n\nWhile inside your debugger, you can run the command chat appended by your query, for example ```chat list all breakpoints that I created```. \nThere is also a command called ```explain``` that you can use with no arguments to explain the previously run command, \nand optionally, with a query to just ask GPT a question. For example, running ```explain``` directly after running \n```break 7``` would prompt the tool to explain how breakpoints work. Running ```explain how input formatting works in gdb``` \nwould prompt it to explain input formatting (see the image at the top).\n\nRun chat help to print out a short tutorial on how to use the tool.\n\n### Contributing\nThanks for your interest in contributing to ChatGDB! See [CONTRIBUTING.md](CONTRIBUTING.md) on ways to\nhelp the development effort. \n\n### Staying Updated\n\nIf you'd like to stay up-to-date on new features/fixes, follow my [twitter](https://twitter.com/pranay__gosar). There's plenty\nof exciting features on the horizon such as complete context-awareness that will make it possible\nfor ChatGDB to not only help you use GDB, but to help you fix the code itself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgosar%2Fchatgdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgosar%2Fchatgdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgosar%2Fchatgdb/lists"}