sajad torkamani

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.

Configure Xdebug to open files in PHPStorm

Similar configuration should work for VSCode:

xdebug.file_link_format=vscode://file/%f:%l

Sources

Leave a comment

Your email address will not be published. Required fields are marked *