Hi Mario,

you can also create a new watch expression and enter there whatever you want to watch, eg. $("#mytarget"). That avoids the need to modify your code.

Another interesting approach to avoid creating variables while using logging as a debug plugin, something like this:

$.fn.debug = function() {
 console.log(this);
 return this;
}

You can then say $("#mytarget").debug().append("something") or even $("#mytarget").debug().append("something").debug() for a before-after view.

Jörn

Reply via email to