Lens Debugging Sandbox

Click the buttons below to trigger intentional bugs in the backend. Watch the console logs and your server terminal.

Scenario 1: Unhandled Promise Rejection

Sends a malformed payload to the checkout endpoint. The server is missing a try/catch block.

Scenario 2: Zod Validation Error

Sends invalid types. The server handles validation poorly.

Scenario 3: Headers Already Sent

Tries to create a user that already exists. The server forgets to `return` after sending an error.

Scenario 4: Event Loop Blocking

Starts a synchronous while loop that blocks the entire Node server for 5 seconds.

Frontend Network Inspector