I’ve found it’s easiest to never use JavaScript debugging in Visual Studio. In my honest opinion, the Chrome JavaScript debugger is a much better alternative for debugging.
To turn off debugging and fix the error in VS2019, go to Tools > Options > Debugging > General. Uncheck the following option:
