in reply to Strategy to track failure...
The first thing I would do is (install Devel::Trace if you don't already have it), and run the failing script like this:
perl -d:Trace theScript.pl 2 > log
When it stops (due to the throw Error::Simple($error);), the last few lines in the log will tell you where it had just been. It'll give you a starting point.
If you then do the same with the working code, you should be able to match up the logs from the entry point in NetLocalGroupEnum() and see where they diverge which should get you to the point of failure quickly.
Then you can start adding a few prints at that point to work out why.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Strategy to track failure...
by toolic (Bishop) on Jun 13, 2013 at 15:15 UTC | |
by CarolinaPerler (Acolyte) on Jun 13, 2013 at 18:20 UTC |