How to run xdebug with PHP from external source


#1

We have a cloud app which we’re hoping to develop with Cloud 9. One requirement is being able to step through the PHP code with xdebug. I can get xdebug to stop at breakpoints as long as I’m running a php script that’s in the editor. But for many of our classes, the executable code is typically called from somewhere else, like a web browser running our front end or a curl call on the cli. These types of runs do not trigger the breakpoints even when the code is obviously executed (I’ve proved that with debugging statements in the PHP code).

How can my breakpoints to stop execution if the code is run from an external source?


#2

see https://github.com/c9/core/issues/236