Debugging a Module
Because of the way they are constructed, modules are difficult to debug. The problem is that you have to debug Perl, but the module is not part of the Perl program proper. Instead, it’s loaded during the program run.
The first step to debugging a module is to create a debuggable version of Perl. By default, when you build and install Perl, the system builds an optimized version with no debugging information.
To build a debug version of the program, you’ll have to rebuild it.
This is done at configuration time. The first step in building the Perl program from source is to run the Configure command. It asks you for the compiler optimizing/debugger flag to be used to create the program. The default (–02) is good for a production ...
Get Perl for C Programmers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.