Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Thanks for the tip, pemungkah!

The other problem is how to get the -d:Trace option to work under mod_perl.

Here's how to do it:

Add the following section to httpd.conf:

<Perl> $Devel::Trace::TRACE = 0; </Perl>

And start the server like this:

$ PERL5OPT=-d:Trace sudo /etc/init.d/httpd restart

Then in your code you can write:

$Devel::Trace::TRACE = 1; # some buggy code $Devel::Trace::TRACE = 0;


  • Server spits out a mess of trace info before $TRACE is set to 0
  • Trace info (and there's a lot of it) goes to the error log, which is hard to manage

I think I'll try making a patch to allow turning off $TRACE via the command line, and to allow sending the trace info to a different file.


In reply to Re^3: "omniscient debugging" for Perl by magog
in thread "omniscient debugging" for Perl by spurperl

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (1)
As of 2024-05-25 15:04 GMT
Find Nodes?
    Voting Booth?

    No recent polls found