indeyets / appserver-in-php

Generic HTTP applications approach for PHP5.3+ (inspired by Rack and WSGI)
BSD 3-Clause "New" or "Revised" License
291 stars 23 forks source link

debugging the 'app' running in your appserver #36

Closed LarryEitel closed 10 years ago

LarryEitel commented 10 years ago

I have been assigned the task of writing some tests for a Drupal APP running on top of your appserver.

If xdebug were to be installed on the base PHP, would I be able to set breakpoints, etc in the APP running in your appserver? Since I do not control the dev server, I can't just 'try it'. :) If I 'should' work, I will request to have xdebug installed.

Thank You

indeyets commented 10 years ago

@LarryEitel did you see https://groups.google.com/forum/#!forum/aip-php-dev ? that's a much better place for Q&A and discussions.

on topic: I don't see why xdebug wouldn't work. should be just fine. It would be a bit different, as there isn't request isolation, but should work just fine otherwise. after all it is just a long-running php-cli application

indeyets commented 10 years ago

oh… one more thing…

aip forks. so for debugging purposes it might be useful to run in single-process mode. that's not supported by "aip the tool" and requires a bit of manual programming. if you feel that's needed — file a separate issue please. should be easy to implement