From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KR0sT-0000Da-9c for garchives@archives.gentoo.org; Thu, 07 Aug 2008 08:29:45 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B8BD3E0864; Thu, 7 Aug 2008 08:29:43 +0000 (UTC) Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.247]) by pigeon.gentoo.org (Postfix) with ESMTP id 7A665E0864 for ; Thu, 7 Aug 2008 08:29:43 +0000 (UTC) Received: by rv-out-0708.google.com with SMTP id b17so304971rvf.46 for ; Thu, 07 Aug 2008 01:29:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=89xwbvHM+qGEvOO1VXjOrGGGHhUGlEiP3k6N2e1Nkfg=; b=PRXRcz3PhlnxAzs9JwXBIgZe0BKcrFeCFQeB07jlJ0voSvXc426KQdyFqAWITP0BNg KcUAriPm4+Hvnr8opusMWQcZDznSWOnyf3BA45eXdG96nIVXpaCItyKjcsGxuaUb03Cc +3h6OiEHHKkoVaNybwnNvzqXngGP169S94rL4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=c5cZwoJNGbpaRhzvbH6bLjx8iPDFttetpBNJ82TxvNUZwVLI1GOIMC3oCJaCGgm7Sa yn10MZ1mKhpGTiikCmV3PuKR39NGeGVCR54xVpZo5DEsMGdamx5UovTyDpSqkNDaF7bK +vFGWy8i7P8sofAJJTkhrR0ppJqZzChC0CMX0= Received: by 10.141.170.10 with SMTP id x10mr578821rvo.140.1218097783045; Thu, 07 Aug 2008 01:29:43 -0700 (PDT) Received: by 10.141.194.1 with HTTP; Thu, 7 Aug 2008 01:29:43 -0700 (PDT) Message-ID: <5e213dd40808070129w77f5ce9agbcda597ced9ebd85@mail.gmail.com> Date: Thu, 7 Aug 2008 10:29:43 +0200 From: "Gregory SACRE" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Perl server-side debug In-Reply-To: <20080804175146.GA24299@crowfix.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080804175146.GA24299@crowfix.com> X-Archives-Salt: 5255aa02-c132-4c6b-841c-4700116b8a67 X-Archives-Hash: 56d0e025a852e6a47fb27459627fa49e Well, to be honest, I am developing a server side Perl application on my Gentoo box. Everything is local and I just transfer the sources to their Window$ server. So far, the only debugging method I used for my Perl script is a "tail -f /var/log/apache2/error_log". It was not verbose, but at least 90% of the time, it was giving me where the problem occured, so it was not that hard to figure out what happened. But this method depends on the fact that you have access to the logs, which might not be possible in your case. What I tried to do also in my developing is to keep separate the web specific parts from the logic ones. This helped me in a sense that most of the "logic" scripts can be executed from the command line with some parameters (as they are independent from where they are called) and therefore be tested on the spot. The web specific part is generally related to display and not that often keen on errors :-) HTH, Gregory On Mon, Aug 4, 2008 at 7:51 PM, wrote: > I have a non-gentoo question here, but my problems are probably partly > flavored by using gentoo at home and something else at work. > > Here is a page on debugging perl server-side code under Apache: > > http://perl.apache.org/docs/1.0/guide/debug.html#Interactive_mod_perl_Debugging > > It has two steps: starting apache with -X (run on the console in the > foreground, don't fork or start any children, handle incoming requests > directly one at a time) and adding configuration to use Apache::DB. > > My problem is that I am trying to do this on a server not entirely > under my comlete control; it writes a configuration file from a > template which I can change, but a lot of internal logic deals with > Mason, and I can't just go changing everything to make this work. I > can start my own server, that is not the problem, it's that I must > keep its original behavior intact, including using Mason. > > One of the puzzles is that the web page in question apparently is > using a pretty old version of perl5db.pl, 1.0402, which has different > perldb commands than I am used to: 'w' for a "window" of source > listing, where I am used to 'l' for "list". Both my home gentoo > system and this foreign system I am using are 1.28. > > Or perhaps this web page is written for Windows users of some sort, > and Windows perl has differences from the real version :-) > > Does anyone have any experience with this server-side debugging process? > > -- > ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._. > Felix Finch: scarecrow repairman & rocket surgeon / felix@crowfix.com > GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933 > I've found a solution to Fermat's Last Theorem but I see I've run out of room o > >