Reputation: 2412
I am trying to get Xdebug to work for a Laravel application in PhpStorm. I have Xdebug installed but not sure how to configure it in this instance. Usually the instance will run in Docker but I'm not sure what's best for development. I can see that Xdebug is installed when checked with phpinfo()
.
I am getting the error: PHP Parse error: syntax error, unexpected character 0x00, expecting end of file in /usr/bin/php8.3 on line 12424
even though the code works when run normally. Am I missing something?
I have PHP8.3 installed with the current Xdebug config in /etc/php/8.3/cli/php.ini
[xdebug]
zend_extension=/usr/lib/php/20230831/xdebug.so
xdebug.mode=debug
xdebug.client_host=127.0.0.1
xdebug.client_port=9003
Upvotes: 0
Views: 69