Edge Computing with Cloudflare Workers
Debugging Serverless Apps

Debugging Serverless Apps

7/5/2018 · Steven Pack

What this post added

Introduced a debugging technique for serverless applications by returning debug information in an X-Debug header. This involves an interceptor pattern where a Logger class captures log lines and exception information, and a LogInterceptor adds this data to the response header when a debug flag is present in the request. This allows for easier debugging of Workers by providing direct access to logs and errors.

Read the original post ↗