What is the best method to debug k6 browser script?

What is the best method to debug k6 browser script? Does setting breakpoints and step run works? Thanks.

Hi @rkaur1
Try a headful browser to view what it’s doing (“K6_BROWSER_HEADLESS=false”) and extra logging with “K6_BROWSER_DEBUG=true”; you can also use try/catch and log messages to the console.