Debugging from an external request such as FLEX or HTML page.

This is how I do it. It is a little weird but seems to work. Basically you need to put VS,PHP into some debug wait mode.

I start the VS.PHP and then run the main project page once (Yes it will execute the full page code). This puts VS.PHP into some run mode waiting for the debugger to call it. You can then run the external submit request and it will hit the first break point it finds in your code.

I am using my own Apache/PHP/xdebug so I dont know if it will work with the internal stuff.

I wish there was a simpler way to put VS.PHP into debug wait mode. Maybe it will be implemented in the new version.

I added the following code at the start of my paqe to prevent executing the full page when I set it to debug mode:

$FORCEGLOBAL=$GLOBALS;
if (isset($_REQUEST["XDEBUG_SESSION_START"])) {
exit();
}

Comments

    Do you mean a wait mode in

    Do you mean a wait mode in which no browser is launch?