Keep It Simple, Stupid | |
PerlMonks |
debug: local watch expressionby InfiniteLoop (Hermit) |
on Dec 06, 2006 at 17:41 UTC ( [id://588140]=perlquestion: print w/replies, xml ) | Need Help?? |
InfiniteLoop has asked for the wisdom of the Perl Monks concerning the following question:
Greetings Monks,
While debugging my code, I had to watch a variable, $attribute, in a for loop. However if I set "w $attribute" , the debugger will break at all usages of $attribute, as the perldebug says: " w expr : Add a global watch-expression.". How do I watch variables, only in a certain package ? Thanks.
Back to
Seekers of Perl Wisdom
|
|