Currently, I am in the process of debugging my code using Chrome Dev Tools.
I have been contemplating whether it is possible to load JavaScript only when DevTools are active in Chrome and ignore it otherwise. This way, I can include debugging logic in my production code without impacting application performance for regular users.
Maybe something along the lines of
<!-- if DevTools are active, then load /debug.js -->