Does the watch service create a proxy of the original function ?
$scope.$watch('query', doSearch, true);
where :
doSearch = function(query) {
alert("breakpoint not working");
// stuff
}
The alert gets shown, but if I add a breakpoint to the code using chrome debugger, its does not break at all. Whereas other break points in non-watched javascript functions work as normal.
Update : The break point works fine when I don't use the workspaces feature of chrome dev tools.
Try using the debugger
command..
For me it works when regular breakpoints to work on chrome.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With