One of the best ways to [[Debugging in k6|debug]] in [[k6 (tool)|k6]] is to use a [[Web Proxies|Web proxy]] and course all requests through it. Using a web proxy makes it easier to see requests the script is making and the responses it's getting back from the application servers. To do that, run the k6 script from the CLI using one of the two commands below: ```bash HTTP_PROXY=http://localhost:8888 k6 run script.js HTTPS_PROXY=https://localhost:8888 k6 run script.js ```