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

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-0.3.2.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

chatgdb-0.3.2-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chatgdb-0.3.2.tar.gz
  • Upload date:
  • Size: 4.3 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-0.3.2.tar.gz
Algorithm Hash digest
SHA256 0187e3ed49a0858df3fcd46b372b8e8c0bdfe2e7a9f29ff216e5ed024f080d2e
MD5 7393d12db05f72e4a26eb76efa9df91e
BLAKE2b-256 075e4b5d4885caf5e4ccff415afa5fa5e929ec8482aa12eecdcecb76d74824ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chatgdb-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 5.4 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-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 601b1ee4dcd027b10aa26038a4847aba296d2cc685f7c434132f94d8deee615e
MD5 6dde5b38872cd30de4560ddfb90ddbbb
BLAKE2b-256 38e367744b5244e3930b8c32af96341d89c9e14dd140c75f264cb030eb73ed7c

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