Return-Path: Delivered-To: apmail-perl-embperl-archive@www.apache.org Received: (qmail 76291 invoked from network); 17 Mar 2005 23:27:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 17 Mar 2005 23:27:19 -0000 Received: (qmail 49418 invoked by uid 500); 17 Mar 2005 23:27:16 -0000 Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 49397 invoked by uid 500); 17 Mar 2005 23:27:16 -0000 Mailing-List: contact embperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Delivered-To: mailing list embperl@perl.apache.org Received: (qmail 49375 invoked by uid 99); 17 Mar 2005 23:27:16 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from baccess-01-133.magna.com.au (HELO jess.oriel.com.au) (203.111.78.133) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 17 Mar 2005 15:27:13 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: $escmode in libraries Date: Fri, 18 Mar 2005 10:27:09 +1100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: $escmode in libraries Thread-Index: AcUq9eq7akz/1caRSJaSs3jBvxmL6gAUVbbQ From: "Andrew O'Brien" To: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N > From: Luiz Fernando B. Ribeiro [mailto:luiz@engenhosolucoes.com.br]=20 > > On Wed, 16 Mar 2005 20:58:37 -0800, Daniel=20 > wrote: >=20 > > Is this what you use? I'm a little curious what others do=20 > to easily see > > what variables contain. Maybe there's a good way I'm missing. >=20 >=20 > In fact I wrote a module using Data::Dumper that writes=20 > variables and =20 > traceback information to a debug file. Send debug information=20 > to screen =20 > may not always be possible and using a debug file allow you=20 > to debug a =20 > production system without bothering your users. Yep. Even something as simple as the following is easy to find in the embperl logfile if you've configured it. Generally I'm turning on the logfile for debugging live systems anyway - you get a lot more context that way and its easy enough to break out each request based on the pid. The '::' is just a random delimiter - it's not special in any way. sub debug { my $self =3D shift; return unless $some_package_or_whatever_global_saying_I_should_debug; print HTML::Embperl::LOG "[$$]DBG: ".join('::',@_)."\n"; } Cheers, Andrew --------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org For additional commands, e-mail: embperl-help@perl.apache.org