For some reason, debugging client-side JavaScript in VS 2012 doesn’t always work. If you’re encountering issues, remember the debugger keyword. Just add it before the line you want to break on and VS will halt execution when it encounters this keyword. Don’t forget to remove the debugger keyword again if you’re done with debugging; otherwise, your browser will try to start a script debugger when it encounters this keyword, which is meaningless to most of your users.