Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MurzNN opened this issue Jul 27, 2022 · 2 comments

Comments

@MurzNN
Copy link

MurzNN commented Jul 27, 2022

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 MurzNN changed the title [Feature request] Add breakpoints on TWIG templates [Feature request] Add breakpoints on Twig templates to debug template variables Jul 27, 2022
@zobo
Copy link
Contributor

zobo commented Jul 28, 2022

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
Copy link
Contributor

zobo commented Jul 20, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants