问题
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;
}
);
来源:https://stackoverflow.com/questions/1667841/jquery-lambda-functions