Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78621 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84471 invoked from network); 4 Nov 2014 09:37:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Nov 2014 09:37:35 -0000 Authentication-Results: pb1.pair.com header.from=pthreads@pthreads.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=pthreads@pthreads.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pthreads.org from 74.125.82.54 cause and error) X-PHP-List-Original-Sender: pthreads@pthreads.org X-Host-Fingerprint: 74.125.82.54 mail-wg0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:51332] helo=mail-wg0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F9/35-24107-D5E98545 for ; Tue, 04 Nov 2014 04:37:34 -0500 Received: by mail-wg0-f54.google.com with SMTP id n12so7639642wgh.41 for ; Tue, 04 Nov 2014 01:37:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-type:mime-version:content-transfer-encoding; bh=URNxwPs3P+4h0wzdJ6aD0p5vFhZ877XwnKqWbRgS0LE=; b=MMLD3Zp7hr6Kb5orQFE9JVlTmIL3PrGEZoW9bLyahFJhnrR/ob+vBymJkp+LyIo7wP R+JXy3GDos8euHA+tIpfW7Q8oXn5NDLbPnf8b03sDiWxGpOWQJzgziKf3yJZA1fBx9YL bqdxyPFGAi8dhR1DW8h3yZ8As+FlMpjXrarRMdTakZ6lpWAWblu9cjp4ga/nzW4NeMcF 1HdvB3oNefw88KkoTQicgNtjPnJBNKgnwD5aszzUgUsWF2pUteHOt2w9lo2hiICz2hnN PTkvVUdsQ0U0/pjse8opv1/OABOEBW1YZrTQ4ZVQcWip9B9mvgqfyIIIA0b8Hh0NVEOZ O8Jg== X-Gm-Message-State: ALoCoQkKcYfT41ZJ90r0C947pG3VQKflPgLKS9HZ1Vk1SV9GvmN9z8VkciDN6gz9BXVX2J+3gXJb X-Received: by 10.180.101.102 with SMTP id ff6mr22816916wib.0.1415093850169; Tue, 04 Nov 2014 01:37:30 -0800 (PST) Received: from [192.168.1.67] (host86-139-76-235.range86-139.btcentralplus.com. [86.139.76.235]) by mx.google.com with ESMTPSA id md11sm11610449wic.15.2014.11.04.01.37.29 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 04 Nov 2014 01:37:29 -0800 (PST) Message-ID: <1415093847.2624.354.camel@localhost.localdomain> To: Lester Caine Cc: internals@lists.php.net Date: Tue, 04 Nov 2014 09:37:27 +0000 In-Reply-To: <54589A18.4080703@lsces.co.uk> References: <1415080851.2624.344.camel@localhost.localdomain> <54589A18.4080703@lsces.co.uk> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4 (3.10.4-4.fc20) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHPDBG scope From: pthreads@pthreads.org (Joe Watkins) On Tue, 2014-11-04 at 09:19 +0000, Lester Caine wrote: > On 04/11/14 06:00, Joe Watkins wrote: > > I'm not saying we should not extend the features of phpdbg, but, we > > should do it knowing what it actually is, knowing that it is > > fundamentally different to xdebug. > > Having just hit another 'white screen' problem on a site I'm trying to > update, I do wonder if there is an alternative debug approach that would > help speed the process. I have used xdebug in the past, but on the whole > the debug tools built into the framework allow fairly quick tracking of > a problem and isolating it. If you were to enable xdebug, I am sure it could give you some insight. As could switching all errors to exceptions temporarily, maybe. A white screen often has the root cause suppressed by error_level, executing in the appropriate way in phpdbg would break on errors, telling you where the problem originates, possibly. > > So the question is ... just where are the strengths of each and is > either useful for day to day debugging, or more appropriate for > debugging the internal operation of PHP? > A considerable strength of a standalone debugger, is that it is standalone :) You don't need an IDE or any other client, a server, or any other software to debug some code, you just need a debugger. We don't deploy code like this however, so while phpdbg might be able to provide some insight in some cases, xdebug is how we debug code that is deployed in a normal server environment. It depends what you do day-to-day, as mentioned, if you are someone comfortable with, or who spends a considerable amount of time in a console, for whatever reason, then phpdbg can certainly be a useful tool. When it comes to debugging our deployments however, nothing has changed. > -- > Lester Caine - G8HFL > ----------------------------- > Contact - http://lsces.co.uk/wiki/?page=contact > L.S.Caine Electronic Services - http://lsces.co.uk > EnquirySolve - http://enquirysolve.com/ > Model Engineers Digital Workshop - http://medw.co.uk > Rainbow Digital Media - http://rainbowdigitalmedia.co.uk > Cheers Joe