In a Perl project,usually how to fix bugs in the script?
Please can anyone give some idea.
Thanks in advance.
In a Perl project,usually how to fix bugs in the script? Please can anyone
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
My first think is perldoc perldebug
I think it’s the better place to start.
My second is : always put
on the top of your script, and you can put
too, for producing a more verbose warning diagnostics
Before opening the Pandora box, takes advantage of the Perl module
Data::Dumper.It’s useful to display all (nested) data structures and objects, see (I use
perlconsole, it’s nice to try some tricks):You will see that Perl can run a script in a debugger with
help said :
You can “trace” it too with :
There’s a gui debugger too, it comes with
Devel::ptkdbmodule, example :Try
too, a Command-line interface to critique Perl source.
Profiling your code is also possible, see
http://metacpan.org/pod/Devel::NYTProf
http://blog.timbunce.org/2008/07/15/nytprof-v2-a-major-advance-in-perl-profilers/