Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Why w perldb debug command not work in a sub
w $pre, @_, !$pre
is ready set but when trace step into sub having its own $pre, Perl debugger do nothing. Please help solve to get this benefit

Replies are listed 'Best First'.
Re: Interactive w debug command cannot work in a sub
by LanX (Saint) on Dec 24, 2021 at 01:15 UTC
    > its own $pre,

    because my declares a new variable distinct to the one you are w(atching).

    The original $pre doesn't change, hence no break.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery