Serverless applications are distributed applications and debugging distributed applications is different to debugging single-server or monolithic applications. Specifically, you must consider:
Debugging across multiple services, since most production serverless applications use a combination of Lambda functions and other services.
Debugging concurrent invocations of functions, as many workloads use parallelization to process increases in traffic.
Understanding the state of a workload when the error occurred so you can reliably reproduce the issue.