Self-Debugger is an experimental project that allows for automatic debugging of javascript code with GPT. It will continually rerun the script until all the errors are fixed by editing the code file.
github-repo-vid.mp4
This project is inspired by python version: https://github.com/biobootloader/wolverine
This project is currently in alpha, possible features include:
- Web UI version 🌐
- Bundle compatibality with things like Vite, NextJs, Create React App, etc 📄
- More functionality and variables to play with 👨👩👦
- Ability to grab browser errors and make changes based on those errors 🔐
- Ability to handle multiple files 💾
Other Features Coming soon...
🚧 You will need Nodejs installed.
- Clone the repository:
git clone https://github.com/ed-roh/Self-Debugger.git
- Install dependencies:
cd self-debugger
npm install
- Create Env file
cp .env.example .env
- Get OpenAI API Key and paste into .env file under "# Your OpenAI API Key"
OPENAI_API_KEY= # Your OpenAI API key
- Ready 🥳, now run command in terminal:
node selfDebug.js --scriptName buggyScript.js
- Watch the Magic:
Check as it fixes the bug in the 'buggyScript.js' file! 🥳