Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Debugging a program

by hexcoder (Deacon)
on Aug 06, 2008 at 19:01 UTC ( #702703=note: print w/replies, xml ) Need Help??

in reply to Debugging a program

To answer your original question 2, the closest you can get with the stock perl debugger is its tracing output.

To enable tracing in the debugger use the t command. You don't get verbose comments like in your example. Instead each executed line is printed with line number information.

The amount of tracing information can be controlled with the frame debugger option. For example you can enable messages for entering/exiting subroutines, show subroutine parameters, show tied and referenced variables, or print the return values of subroutines.

If you want to trace certain sections in your code, you can set the $DB::trace variable to 1 to enable tracing, and to 0 to disable tracing. For details see perldeb

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://702703]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (9)
As of 2019-05-23 17:42 GMT
Find Nodes?
    Voting Booth?
    Do you enjoy 3D movies?

    Results (146 votes). Check out past polls.

    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!