ActiveState Community

Debug in PHP eval() function

Posted by steenlf on 2008-09-30 11:33

Hi

I am running a php template system, where some html template pages are read by a php script, pre-processed and the directed into an eval() statement.

This works fine, however, I would like to debug these html template pages. I know that they are generated dynamically, and the source code is not statically available. However, my question is now: Is there a way, that I can single step into these html template pages - ie. single stepping (the template pages also contains php code).

I am running Komodo IDE 4.4.1.

Thanx in advance
Steen L. Frederiksen

steenlf | Thu, 2008-10-02 03:05

I can add to this, that the template html pages calls some of my custom made php functions - and it is actually these php functions, that I would like to debug. Ie.: From the dynamically pre-processed html/php pages, calls to static php functions are made.
And furthermore strange things happens: Whenever I am trying to debug this eval'ed php code, the browser comes up with a file download box - offering me the option of downloading the xxx.php file (when downloaded however, it is empty)! This does not happen, if not debugging the code, where it works fine.

Any suggestions?

Br
Steen L. Frederiksen

steenlf | Wed, 2008-10-08 01:45

Still no suggestions?