open-runtimes / open-runtimes

Open runtime environments for serverless cloud computing ⚡️
MIT License
205 stars 59 forks source link

🚀 Feature: Debugging with the Open-Runtimes-instance #90

Open theemaster opened 2 years ago

theemaster commented 2 years ago

🔖 Feature description

🎤 Pitch

I have some development experience with Azure Functions. They are easy to debug because as a developer you can have full insight into the runtime behavior and localize bugs quickly. Microsoft provides a container called Azurite for local debugging and simulating their cloud function environment. Having the possibility to do this locally has also a better development experience IMHO. Therefore I think, it would be a benefit if Open Runtimes would allow debugging (via a local container) to improve the development quality and speed.

👀 Have you spent some time checking if this issue has been raised before?

✅ I checked and didn't find a similar issue

🏢 Have you read the Code of Conduct?

✅ I have read the Code of Conduct

gijsvanlokven commented 1 year ago

A few thoughts, debugging code that is running inside the runtime would be dependant on de language and available debuggers. The debuggers for PHP, Python and Node all support remote debugging. We would just need to implement the necessary packages into the docker files or create seperate docker files for debug runtimes.

Getting the output and error logs of the runtime shouldn't be a big deal either. Any info messages or error messages should be written to stdout and we could pipe those into a log file or you could to the stdout of a container to get that output

@Meldiron @eldadfux what do you guys reckon?