how to debug adding hash to location?

I have a very old javascript application. On the very start of loading a page, something adds hash to window.location.

how can I set a breakpoint and see where it’s being added? It’s done during page loading, I think one of included js files add this hash (there are like 30 of them). I need to remove it (when some creteria are met)