[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] seeing 'my' variables in the debugger



On Wed, 30 Jul 1997 18:43:43 +0000, Alex Hooper <alex@hipps.demon.co.uk>
wrote:

>I'm having trouble seeing variables declared with 'my' in the debugger
>
>eg:  my $categ = @_[1];
>
>when I try "X categ" in the debugger, it doesn't show it.
>
>What am I missing? (...apart from the obvious jokes...)

I think the trouble is caused by the fact that the debugger is written
in Perl. So that, actually, your commands are evaluated in a different
Perl sub than the one you think you're in: the one you're trying to
debug. So, "my" variables are inaccessible there.

Conclusion: this is by design. An unfortunate design, in this case...

[grunt: M$ would call this a "feature"]

	Bart Lateur
	bart.mediamind@tornado.be

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch