I'm having an issue where I have multiple JavaScript files, but only some of them allow me to add breakpoints within Visual Studio 2022. Files where I can't give the message "Breakpoint will not be hit. Breakpoint set but not yet bound".
I believe the issue to be that only Javascript files with methods that are called by events in the Cshtml allow breakpoints, but JS files with method only called by JavaScript don't allow for breakpoints.
Any guidance or help to understand this would be greatly appreciated. I've attached a couple of pictures.