Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Debugger Tutorials

by nysus (Parson)
on Jun 13, 2001 at 21:15 UTC ( [id://88128]=note: print w/replies, xml ) Need Help??


in reply to Debugger Tutorials

Basic debugger concept #1: the built in Perl debugger referenced above will not work unless your program compiles. So if you have major flaws in your code, the built-in Perl debugger is useless. So as a first step, be sure you:
use strict;
use diagnostics;
and to call Perl using the '-w' (warnings) switch.

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot";
$nysus = $PM . $MCF;

Replies are listed 'Best First'.
Re: Re: Debugger Tutorials
by HamNRye (Monk) on Jun 13, 2001 at 21:50 UTC

    This is not a problem with programs compiling, I just want to know how to debug a program without seeding it with print statements. I'm assuming this is the point of a debugger.

    I have been writing Perl for 5 years now, but I have always debugged with the old print "Count is" $count ; and the like. As my projects get more and more complex, this becomes more and more tiresome.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-25 17:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found