jQuery lambda functions

2019-07-20 14:45发布

问题:

jQuery uses lambda functions extensively wherever a function is to be passed into another function. But Visual Studio 2008 would not honor break points that are set inside a JavaScript lambda function. Anybody knows any workaround for this other than giving an explicit name for the function and passing this to the jQuery functions?

回答1:

try using Firebug.



回答2:

Put debugger statement into your function.

$.get('http://...').on('data', 
    function(data) {
        debugger;
    }
);