X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com 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 MIME-Version: 1.0 Message-ID: <24823.45076.15657.755748@gargle.gargle.HOWL> Date: Wed, 21 Jul 2021 01:26:44 -0400 From: bzs AT theworld DOT com To: Jim Hyslop Subject: Re: Debugging PHP with GDB and php-debuginfo In-Reply-To: <6761b93277958c240961339bc5a1f2e2@dreampossible.ca> References: <6761b93277958c240961339bc5a1f2e2 AT dreampossible DOT 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 AT cygwin DOT 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: , Cc: cygwin AT cygwin DOT com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" 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 AT TheWorld DOT 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* -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple