Configure Xdebug to open files in PHPStorm
25 May 2022 (Updated 25 May 2022)
Add the following to a php.ini
file loaded by your PHP installation:
xdebug.file_link_format="phpstorm://open?file=%f&line=%l"
Now, clicking on a line number in a stack trace (e.g., in Symfony Profiler‘s stack trace) should open up that line in PHPStorm.
Similar configuration should work for VSCode:
xdebug.file_link_format=vscode://file/%f:%l
Sources
Tagged:
PHP tooling
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment