Harness the power of ChatGPT directly inside the GDB debugger!
Project description
ChatGDB
Harness the power of ChatGPT inside the GDB debugger!
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_gdb 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.
You can also edit your $HOME/.gdbinit
and source the file automatically on startup with
source /path/to/core.py
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file chatgdb-0.3.1.tar.gz
.
File metadata
- Download URL: chatgdb-0.3.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9421d9dbebc55d10a7f0a82153db398c39e4db24bae76330b54978047546d415 |
|
MD5 | edb40e6b8b7dac4001bff518d6c70397 |
|
BLAKE2b-256 | 47a751b5a2d05005915ecaa8cda229543b3e97eb1d66bf293c99170881342f04 |
File details
Details for the file chatgdb-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: chatgdb-0.3.1-py3-none-any.whl
- Upload date:
- Size: 5.3 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc362e8fd287eb8b75a90981821434c45930b529e25e043bddaea96b7eef66b5 |
|
MD5 | 6f46fdcfccf45dcf1708d28dc088e41e |
|
BLAKE2b-256 | 59628eae4b3a98794340bc0dc2dec5642de16e4cdbf9408cd11e2b547e07ead6 |