derickr/twig-ext — Issue #3: Debugging twig templates
Author: pulse00
Created: 2012-03-09 16:05:12+00:00
State: open

I'm the author of the [Twig Eclipse Plugin](https://github.com/pulse00/Twig-Eclipse-Plugin) and am thinking of a way to create step-through debugging support for twig templates.

As you've written both the twig c extension and also xdebug, i'm wondering if you could give me some feedback on if this would be possible.

Basically, if you're stepping through a HTTP request involving twig templates in the PHP debugger right now, when the twig template is rendered you are stepping through the generated PHP class, which is not really user-friendly.

I'm wondering if there's some way to translate those compiled php templates back to the original line numbers to work with an IDE step-debugger.