vscode-php-debug icon indicating copy to clipboard operation
vscode-php-debug copied to clipboard

[Feature request] Add breakpoints on Twig templates to debug template variables

Open MurzNN opened this issue 2 years ago • 2 comments

PhpStorm implements debugger for Twig templates, here is the announcement: https://blog.jetbrains.com/phpstorm/2019/01/phpstorm-2019-1-early-access-program-is-open/#twig_debug_support

Is it hard to implement the same feature in PHP Debug Adapter for Visual Studio Code?

MurzNN avatar Jul 27 '22 12:07 MurzNN

Hi! I will have a more in depth look at this a bit later. However I have already discussed a similar topic with Derick. There is currently a dbgp proxy that does some path rewriting that could solve this feature. I can't find it right now, but this is something on the roadmap.

zobo avatar Jul 28 '22 07:07 zobo

This will probably be possible after Xdebug implements server side path mappings https://derickrethans.nl/xdebug-update-june-2023.html But this will probably require some funding.

zobo avatar Jul 20 '23 13:07 zobo