Skip to content

An Experiment for automatic debugging of javascript code with GPT

Notifications You must be signed in to change notification settings

ed-roh/Self-Debugger

Repository files navigation

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

🎉 Roadmap

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...

👨‍🚀 Getting Started

🚧 You will need Nodejs installed.

  1. Clone the repository:
git clone https://github.com/ed-roh/Self-Debugger.git
  1. Install dependencies:
cd self-debugger
npm install
  1. Create Env file
cp .env.example .env
  1. Get OpenAI API Key and paste into .env file under "# Your OpenAI API Key"
OPENAI_API_KEY= # Your OpenAI API key
  1. Ready 🥳, now run command in terminal:
node selfDebug.js --scriptName buggyScript.js
  1. Watch the Magic:
Check as it fixes the bug in the 'buggyScript.js' file! 🥳

About

An Experiment for automatic debugging of javascript code with GPT

Resources

Stars

Watchers

Forks

Packages

No packages published