1
votes

I have an AIR application which uses RemoteObject to comunicate with remote services in PHP (using Zend AMF).

The application works great, but I can't debug the PHP side (the Flex debugger works fine, the PHP side is the problem).

I'm using Flash Builder 4.5 for PHP, when I write a Web Application (not AIR), I can choose to debug the application as "Web (PHP) Application", and the breakpoints in the PHP side are working as expected.

But I can't see any similar option for Desktop Applications (AIR).

Does somebody know if it's possible (and how) to debug the PHP side in an AIR application?

2

2 Answers

1
votes

Use something like xdebug, or PHPStorm. Start a debug session, capture the service id (available in the GUI interface for both) and send an additional header on all requests from your AIR app to include XDEBUG_SESSION: .

0
votes

the debuging process actually the same. run your amf service in debug mode, just put breakpoint anywhere you like. whenever air application doing a service call, then the process will automatically stop at the breakpoint.