Using the built-in debugger of Perl

The new screencast is about using the built-in debugger of Perl. I gave talks about this at various Perl workshops and conferences and there were always lots of people who have never used the debugger. I hope this will help more people to start using it.

Running the debugger:

perl -d yourscript.pl param param

The debugger commands that were mentioned in this video are:

q - to quit

h - to get the help

p - to print

s - step in

n - step over

r - step out

T - stack trace

l - listing code

I also recommend to read the book of Richard Foley and Andy Lester: Pro Perl Debugging

You are more than welcome to subscribe to my YouTube channel.


Perl tutorial and video course

For further articles see the Beginner Perl Maven tutorial book and video course.


In the comments, please wrap your code snippets within <pre> </pre> tags and use spaces for indentation.
blog comments powered by Disqus
Online courses:


Would you like to get
updated when I publish
the next article?

Follow me:

Google Plus Twitter RSS feed