I was writing a script that was passing for me when I run them in Chrome Developer Tools Console but the same wasn't working in the WebPageTest Inject JavaScript section. After struggling with understanding why that might be happening, I thought there must be a better way to understand what's going on. Well, I didn't find a very good way but I found that the nice old way of spreading console.log
s at various places, is useful in WebPageTest also.
This is available under Snapshot(somewhat unintuitive) section on WebPageTest Report Page.
https://nooshu.github.io/images/wpt-waterfall-chart/console-log-panel.webp