Working zero config php xdebug 3.1.1 and phpStorm 2021.3 RC

php 7.4 w/xdebug 3.0 phpStorm 2020.3 zend_extension=””xdebug.mode=debug;xdebug.file_link_format=”http://localhost:63342/api/file/%f:%l” This now makes xdebug output links that open phpstorm (which is actively listening on port 63342… phpstorm:// wasn’t working for me anymore… [UPDATE 2021-01-14]zend_extension=””xdebug.mode=debug;xdebug.file_link_format=”phpstorm://open?file=%f&line=%l“ phpStorm 2020.3.1php 8.0.1xdebug 3.0.1 [UPDATE 2021-11-29] Seems like phpstorm/intelliJ […]

Debugging a segfault in PHP

debugging segfaults is not fun. My low key technique: place a printf(“made it here: %s, %s+ %sn”, __METHOD__, __LINE__, __FILE__); everywhere… put “DIE(‘something’);” to figure out the exact line that fails.  If dies, good.  move it further down.  If it […]