Add the following line "debugger" to your site "myMethod" - \
function myMethod(arg1, arg2) {
Operator
"debugger" will suggest debugging JavaScript.
When myMethod is executed, you will get a hint with which the debugger you want to execute, then from the prompt select "New instance of Visual Studio 2xxx"
Hope this helps.
Parag meshram
source share