There are plenty of tutorials for remotely debugging NodeJS, Python and C# applications in Docker, but all of those methods seem to rely on exposing a debug port of sorts. My question is: has anyone completely Dockerized their Serverless Framework workflow?
The only way I have been able to debug in Serverless thus far is via
serverless invoke local, which seems to be attachable via VS Code. However, if I want to debug/review the output in Docker, I think I’m looking at doing something like:
docker container exec MyApp 'serverless invoke local -f MyFunction'
… Which is quite the mouthful. Is there a better way? Possibly something that gets me more functionality such as remote debugging?