Search code examples
phpactionscript-3debuggingxdebugremote-debugging

How to set php xdebug flag in ActionScript?


My server runs PHP, with xdebug enabled. I am remotely debugging php code through PhpStorm.

then how to set php xdebug flag in ActionScript?

In iOS code, it is simple: [pairs addObject:@"XDEBUG_SESSION_START=PHPSTORM"];

But how to do similar thing in ActionScript?

FYI: http://xdebug.org/docs/remote


Solution

  • Simply add debug session flag as part of query string in your server URL: www.abc.com/xyz.php??XDEBUG_SESSION_START=PHPSTORM