Skip to content

ed-roh/Self-Debugger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

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