ropey has asked for the wisdom of the Perl Monks concerning the following question:
I have unfortunately inherited a rather nasty beast of object orientated code, the sort where object orientation was used *because you could* not because you *should*. The problem is evertime I try and fix a problem I look for the correct sub and there and behold is SUPER::sub_name, so I look up the inheritance tree and find the next level also has SUPER::sub_name. So to cut a long story short it takes forever to solve the simplest of problems. Now what I need to do is somehow follow what is called by what, I though CGI::Carp would give me some sort of stacktrace but it seems to get confused. So does anyone know a method how I can do a stacktrace, i.e. at any given point I can do a carp and it backtracks to the original sub call. I hope this makes sense !!!
Thanks in anticipation
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Subroutine Tracing
by tachyon (Chancellor) on Dec 10, 2002 at 20:55 UTC | |
|
Re: Subroutine Tracing
by particle (Vicar) on Dec 10, 2002 at 21:14 UTC | |
|
Re: Subroutine Tracing
by cLive ;-) (Prior) on Dec 10, 2002 at 23:34 UTC | |
|
Re: Subroutine Tracing
by graff (Chancellor) on Dec 10, 2002 at 20:54 UTC |