in reply to Insert breakpoint when debugging in AS Perl

Another option is to add the line $DB::single = 1; to the spot in the code that you'd like to force a break point. This tells the debugger to go into single step mode, effectively forcing a break point.

-Colin.

WHITEPAGES.COM | INC

Replies are listed 'Best First'.
Re^2: Insert breakpoint when debugging in AS Perl
by mosh (Scribe) on Jun 29, 2005 at 17:51 UTC
    Didn't work !

    "Loading DB routines from perl5db.pl version 1.25 Editor support available." And then:
    "Scalar found where operator expected at C:\work\...module.pm line 111, near "$self""

      It seems that the fashion in which you inserted that statement caused a syntax error in the module. If you were to post an excerpt of the code, then it should be easy to tell. Perhaps you forgot the semicolon at the end of the assignment to $DB::single?

      -Colin.

      WHITEPAGES.COM | INC