Sounds tricky
As far as I understand this, you want to analyze what the program is doing but you don't want to run it.
Or you want to run it in a safe mode where any changes it might make are isolated from a real system - effectively running it in an emulated fashion - stepping through and saying what will happen without actually performing the steps of the program.
I don't know of anything that will do that so I'd probably start by doing this...
Working with a copy of the file on a non-production machine, I would read the code in depth and identify and research any code puzzling me. At this stage the Perl documentation would be indispensable.
If it uses modules then I'd be careful to try and understand how it declares instances and uses the methods in those modules and whether it used those modules in a non-standard way. I'd also want to understand what those modules do.
If it uses in-house proprietary modules, then I would have to seek documentation and/or advice, if any, for those modules.
By then I should be able to identify the areas where it might be changing the real time environment. I'm assuming this is the problem area for you.
Then I would test to check my research is correct. The extent to which you prepare for this is up to you. I have no idea whether the testing stage would require disconnection from the network or a complete backup of the test machine in case everything gets trashed but you may need to go to that level. Only you know that.
Running the code may involve providing some default values for some variables but by then I would have a good idea what was required.
In reply to Re: perl debugging problem
by LesleyB
in thread perl debugging problem
by perlplayer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |