'How to identify line mentioned as "global code" in JavaScript stacktrace

Sentry is notifying me of errors, with a stacktrace that starts with at global code (https://www.<mydomain>.com:1:49)

In my header tag I have several scripts.

How can I know which script tag, and which line of it, is causing the error?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source