Rubber Duck Debugger
I found myself many times asking a question on StackOverflow or to one of my colleagues just for finding the solution simply by describing my problem. So I thought:
"what if I'm stranded in the middle of a jungle and need to debug my code?", and this is where Rubber comes into play.
Rubber is a simple command line tool written in python that will help you define your problem, analyze your code and hopefully find a solution.
Here's what I used, everything should come with your os by default, but I will still list here in case you want to check:
- Python3 (not sure if 2 does work, but why would you want to use that? Ew...)
$ git clone [repo url] $ cd RubberDuckDebugger $ sudo ./setup
How does this work?
To start it just type
The tool will ask you a series of questions about your code. Try to answer in the most detailed manner as possible, just as you were trying to ask a question on StackOverflow.
This tool doesn't touch your code or your project, it actually does nothing, it's more of a way to explain you code in a way that may help you find what's missing or what's wrong.
If someone comes telling me "BuT iT dId NoT dEbUg My CoDe!1!!11!" I'll
sudo bash this repo on his head.
If rubber duck debugging didn't work you might want to ask on StackOverflow, but at least you will have a better understanding of your code and this will help you ask a better question.
For any issue, question or suggestion feel free to open an issue.