Re: Perl debugging



On 29 Sep 2005 09:26:17 -0700, aizenman@xxxxxxxxx <aizenman@xxxxxxxxx> wrote:
> Ah, one more question. Is there any way that I can tell the debugger
> to break at a certain point in a different file than the one I start
> in? I.e.
>
> DB<3> b foo.pm:23
> Subroutine main::foo not found.

I'm no debugger expert, but you could always use 'f' to select the
"current file", then 'b' to set the breakpoint.

DB<3> f Foo.pm
DB<4> b 23

Or if you just want to break when a certain sub within Foo is called
(assuming Foo.pm contains package Foo):

DB<5> b Foo::mysub



.



Relevant Pages

  • Re: idiom for managing passed arguments?
    ... > sub wanted ... Perl being Perl, there are several idiomatic ways to pass arguments to ... subroutine call and you can leave them out of the call. ... Prev by Date: ...
    (comp.lang.perl.misc)
  • Re: calling subroutine , name derived from variable
    ... > I want to call subroutine, but the name of the subroutine itself is in a ... sub this_sub { ... It's better practice to use a hash as you won't break the strictures pragma ... Prev by Date: ...
    (comp.lang.perl.misc)
  • Cursor Values and Subroutines
    ... Normally I can easily return the string from a sub routinge, ... from another subroutine, ... Prev by Date: ...
    (perl.dbi.users)
  • Re: calling subroutine , name derived from variable
    ... >> I want to call subroutine, but the name of the subroutine itself is in a ... > You're looking for symbolic references, but it's not good practice to use ... > sub this_sub { ... Prev by Date: ...
    (comp.lang.perl.misc)
  • call a sub using a variable
    ... I need to change which subroutine I call based on the user's input. ... save the name of the Sub in a variable? ... Dim MySub as string ... Prev by Date: ...
    (microsoft.public.access.modulesdaovba)