How do you break on a specific line of a require'd file in the Perl debugger?

Posted by Morinar on Stack Overflow See other posts from Stack Overflow or by Morinar
Published on 2010-06-11T21:16:21Z Indexed on 2010/06/11 21:22 UTC
Read the original article Hit count: 250

Filed under:
|

I've got a Perl script, let's call it A.pl where the first two lines look something like this:

 require 'B.pl';
 require 'C.pl';

Where both B.pl and C.pl each have their own cavalcade of requires. I need to set a breakpoint on a specific line of C.pl. In GDB I'd do something like:

b C.pl:830

However that doesn't seem to work at all here. Is it possible? Am I close?

© Stack Overflow or respective owner

Related posts about perl

Related posts about debugging