From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from TheWorld.com (pcls5.std.com [192.74.137.145]) by sourceware.org (Postfix) with ESMTPS id 6EB74384002E for ; Wed, 21 Jul 2021 05:27:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6EB74384002E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=theworld.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=theworld.com Received: from pcls8.std.com (pcls8.std.com [192.74.137.148]) by TheWorld.com (8.14.5/8.14.5) with ESMTP id 16L5QnDA030633; Wed, 21 Jul 2021 01:26:51 -0400 Received: from pcls8 (localhost [127.0.0.1]) by pcls8.std.com (8.14.5/8.14.5) with ESMTP id 16L5QibF000658; Wed, 21 Jul 2021 01:26:44 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <24823.45076.15657.755748@gargle.gargle.HOWL> Date: Wed, 21 Jul 2021 01:26:44 -0400 From: bzs@theworld.com To: Jim Hyslop Cc: cygwin@cygwin.com Subject: Re: Debugging PHP with GDB and php-debuginfo In-Reply-To: <6761b93277958c240961339bc5a1f2e2@dreampossible.ca> References: <6761b93277958c240961339bc5a1f2e2@dreampossible.ca> X-Mailer: VM 8.2.0b under 27.2 (x86_64-pc-linux-gnu) X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_40, KAM_DMARC_STATUS, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jul 2021 05:27:19 -0000 As much as I love GDB dearly and rely on it regularly you might want to have a look at netbeans.apache.org which is also free and a more general fancy UI IDE. If it's a web site you're developing for example it will let you fire up a browser, put breakpoints in the php code, and examine variables etc. It's a little more complicated to set up than just using GDB but not too bad (hint: install the Chrome browser ZDebug/XDebug/whateveritis extension they recommend, and/or Firefox, or netbeans has a built-in browser tho you probably want to know how your code works with chrome and/or ff not their browser other than initial devpt.) P.S. I generally edit my code with emacs. Netbeans notices a file has changed and reloads -- it's magic (aka inotify(7)) tho use one (IDE editing) or the other (emacs/vi/joe/jove/pico/externaleditor.) The latest releases of netbeans (12.x) have gotten very good but once in a while you just have to exit and restart it ("a communication failure has occurred...") but no big deal just restart it, it remembers your breakpoints etc., just to save you five minutes of WTF?! -- -Barry Shein Software Tool & Die | bzs@TheWorld.com | http://www.TheWorld.com Purveyors to the Trade | Voice: +1 617-STD-WRLD | 800-THE-WRLD The World: Since 1989 | A Public Information Utility | *oo*