Re: Debugging PHP with GDB and php-debuginfo

2021-07-21 Thread Andrey Repin
Greetings, Jim Hyslop! > I've installed the php-debuginfo extension for gdb, but I can't figure > out how to set a breakpoint with it. Is there a manual for > php-debuginfo? All I can find is the package information. > I'm trying to debug why a unit test is passing (it should fail). I'm >

Re: Debugging PHP with GDB and php-debuginfo

2021-07-20 Thread bzs
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

Re: Debugging PHP with GDB and php-debuginfo

2021-07-20 Thread Russell VT via Cygwin
There's the "Magic Method" in PHP for __debuginfo() . Also see PHP RFC: __debugInfo() . You may have better luck asking the PHP devs how to best use this with GDB, or the GDB folks how to