Looking for the most effective method of debugging JavaScript in Visual Studio when dealing with embedded resource files?
Due to the fact that JavaScript is compiled into a library, setting breakpoints directly on the source file may not yield desired results. To overcome this, one approach we have used involves adding a reference to an undefined variable which prompts Visual Studio to detect it. This enables setting breakpoints and facilitates normal debugging.
However, there seems to be an issue as Visual Studio is no longer recognizing the undefined variable.
In such cases, what would be the optimal way to debug JavaScript within Visual Studio while utilizing embedded resources?