break-on-access
break-on-access copied to clipboard
"breakOn is not defined" after the snippet is run during a breakpoint
If, while the debugger is paused at a breakpoint, I decide to use breakOn()
and run the snippet that defines it, then I get "breakOn is not defined" when I try to use it.
It seems that the first line should be
breakOn = function(obj, propertyName, mode, func) {
instead of
function breakOn(obj, propertyName, mode, func) {
See this thread and its old long version.