You can debug a javascript either by placing code "debugger;" a line above the point from where you want to start your debugging. The second way is to use script explorer in visual studio run your application and open the concerned javascript file from script explorer and click on the start of the line to place a debugger . During execution application will transfer the control to the placed debuggers as and when same javascript would be called.