I think I'm late for the party, but I hope that my answer will help you and others. The file you want to debug, or the line in the file, just add this -> debugger;
before this line.
So, when require.js loads your script and encounters this line, that is debugger;, it exists, it automatically stops at that line.
source
share