I'm using ActivePerl 5.8 on Windows XP.
use strict;
use warnings;
use Data::Dumper;
There are three subroutines used in my script.
To detect the call stack, I can only insert some print "some location";
and check the print result from console Window.
Is there any good method to monitor it? Thank you.
Call stack is set of lines, which is usually read from top to bottom - meaning moving from current locations to callers. The bottom line was executed first. The top line is executed last and it is the current routine.
A call stack is typically "the current stack of operations" - i.e. while it's running. A stack trace is typically a copy of the call stack which is logged at some sort of failure, e.g. an exception.
A "stack," or stack space, is a block of memory used to store temporary data needed for proper program execution.
If it's your code, you might want to use:
Carp::cluck( "And here's the stack:" );
See Carp::cluck
. It prints out a warning with a stack trace. It works like the "printf" style of debug output.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With