在 PhpStorm 中调试 *.tpl 文件

Debug *.tpl files in PhpStorm

我正在与 PhpStorm IDE 合作。我已经配置了 xdebug,我可以在我的 IDE 中调试 php 个文件,它工作正常。

问题是我也想调试 .tpl 文件。我可以在 NetBeans IDE 中调试 .tpl 个文件!但是PhpStorm不支持​​Smarty调试!我搜索了很多,没有发现什么特别的东西。

是否可以在 PhpStorm 中调试 .tpl 文件?我该怎么做?

我们必须告诉 PhpStorm *.tpl 个文件是 *.php 个文件。

所以我们转到 File->Setting->FileTypes 并从 Smarty 文件类型中删除 *.tpl 并将其添加到 Php 文件类型。就这样。