k6 run --http-debug=full script.js

Category: Web App Development

k6 run --http-debug=full script.js

Log every HTTP request and response in k6

Prints the full request and response details for each HTTP call the test makes, invaluable for debugging flaky scripts. The --http-debug flag takes values like headers or full, where full includes bodies. Expect very noisy output, so scope runs tightly.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.