Skip to main content

Harness the power of ChatGPT directly inside the GDB debugger!

Project description

ChatGDB

Harness the power of ChatGPT inside the GDB debugger! image

Installation instructions

To install, run the command pip3 install chatgdb. It will create an executable called chatgdb that you will have to use to set your api key. To do that, run the command

chatgdb -k <API KEY>

Without the API key, you won't be able to make requests to OpenAI. The API key is stored in text in the same directory as the installed script, which is currently in your python site packages folder

Optionally, you can also download the compressed files in the releases page to get the scripts directly. If you do this, you will need to instead invoke the cli tool with

python path/to/cli.py -k <API KEY>.

How to use

While inside gdb, source the core.py file with source /path/to/core.py. By default, this is pythonXXX/site-packages/chatgdb/core.py. Then you can use the command chat appended by your query, for example chat list all breakpoints that I created. There is also a command called explain that you can use with no arguments to explain the previously run command, and optionally, with a query to just ask GPT a question. Run chat help to print out a short tutorial on how to use the tool.

You can also edit your $HOME/.gdbinit and source the file automatically on startup with source /path/to/core.py.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chatgdb-1.0.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

chatgdb-1.0.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file chatgdb-1.0.1.tar.gz.

File metadata

  • Download URL: chatgdb-1.0.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.10 Linux/6.2.9-arch1-1

File hashes

Hashes for chatgdb-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0f0adb84a9a8bbe1e46021a4a8af6b7b4c8aea32739c0d59f5432d0b6aa8bb61
MD5 7f1ed1c568f3b53ec2c76d6c2749b7b2
BLAKE2b-256 8792966e34d3311e1c1d0091e43e1cf29c85697480673844ed95a6f2e42273ec

See more details on using hashes here.

File details

Details for the file chatgdb-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: chatgdb-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.10 Linux/6.2.9-arch1-1

File hashes

Hashes for chatgdb-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 679a33baaf48fb557df5bded12b217da7e00a5b893b1b7465829e0f2a4b1ff24
MD5 2b3975081e01656e5bcdb54badc11a41
BLAKE2b-256 abc6cb38fb703199a461f81b9b7296936ac608fd053855771705f4c9738e1ada

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page