I made a python library that gives GPT4/chatGPT access to both your source code and current program state. If it suits your workflow better, you can also turn all your error messages into (optional) conversations:https://hdmamin.github.io/roboduck/data/images/errors.gif