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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: chatgdb-1.0.0.tar.gz
  • Upload date:
  • Size: 4.4 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.0.tar.gz
Algorithm Hash digest
SHA256 5932e8b7ea855fcb3c4032523a7dc5ee50f532b1853cce847c8501245d9caddd
MD5 d95ac919318d9460158c22b96c4f019b
BLAKE2b-256 95cc30052a950f47569826138da402da3c468af524f64da1bbeeada1855fbd40

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chatgdb-1.0.0-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-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a94023516d6ba708991e1d48ee8d70eb85abef858e252554cdfda2f3925db0b1
MD5 91bda2ab40f95f90a8edfb7dc7956855
BLAKE2b-256 bf086c6e598f6f5cc95c77dd83bb3c1770f2e82fe023a096d93bf9c958a7d677

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