I would suggest not using XDEBUG_SESSION_START in this case. For me it looks like this: XDEBUG_SESSION_START runs some server-side code execution to set a cookie. And this interferes with the pluggable code template.
Throughout my experience with PHPStorm, I have found that the best way to enable xdebug is through the bookmarklet, which you can create here:
https://www.jetbrains.com/phpstorm/marklets/
The label sets the cookie in the browser itself. Thus, the server does not execute the code to set XDEBUG_SESSION and path variables, which can reduce or eliminate interference using the smarty code.
In addition, one tip with PHPStorm is to make sure that PHPStorm is running and the network connection is working fine between PHPStorm and php-fpm (I assume this is what you use in conjunction with nginx).
If php-fpm cannot connect to PHPStorm, in my experience, the code will eventually run on the server, but it will be very slow.
There were several times when I saw this incorrectly as a performance problem and spent a lot of time.
source share