Prettify the results of ---http-debug=full in k6

One my favorite way to debug a k6 script is to run with --http-debug=full mode so I can see the results of request and response. The problem is the output is not very clear and you have to copy the output and paste in a JSON formatted editor. Is there a way we can prettify the results of http debugger ?

1 Like

Hi @rakeshsukla53,
sorry for the late reply. We have an open issue with some improvements that we could implement in the future. As you can read from there, in this case, a possible workaround is to use the –logformat=json option with a tool like jq for displaying and post-processing the logs.

If this is not enough, can you share which specific part of the results is not very clear and you would improve, please?