Skip to content

How to Capture Console Logs and Network Requests Without DevTools

You do not need to manually dig through Chrome DevTools for every bug.

Use Gasoline to collect the same evidence in a structured way.

Step 1: Capture console errors and warnings

Section titled “Step 1: Capture console errors and warnings”
observe({what: "errors"})
observe({what: "logs", min_level: "warn"})
observe({what: "network_waterfall", status_min: 400})

This gives you a clean request list with failed calls.

observe({what: "network_bodies", status_min: 400})

Now you can see error payloads, not just status codes.

generate({what: "reproduction"})
  • Less manual clicking
  • Easy to repeat
  • Easier to compare before/after fix

[Image Idea] Failed requests list with corresponding response body.

[Diagram Idea] Data flow: browser event -> logs/network capture -> repro artifact.