Hello.
I'm using the XOAD-libary (www.xoad.org) to make AJAX-calls. The problem is, I can't debug them in the PhpEd-IDE directly. Here is an examplescript:
<?php
require('xoad/xoad.php');
XOAD_Server::allowClasses('Test_Class');
if (XOAD_Server::runServer()) { exit(); }
else
{
echo '<hml>'.XOAD_Utilities::header('xoad', false).'
<script type="text/javascript">
var test = '.XOAD_Client::register(new Test_Class()).';
strResponse = test.doSomeStuff(); // make Ajax-Call
alert(strResponse); // show the response
</script><body></body></html>';
}
class Test_Class
{
public function doSomeStuff ()
{
return 'the response';
}
function xoadGetMeta()
{
XOAD_Client::mapMethods($this, array('doSomeStuff'));
XOAD_Client::publicMethods($this, array('doSomeStuff'));
}
}
?> |
Is assumes that "XOAD 0.6.0.0 for PHP 5 strict" (
http://prdownloads.sourceforge.net/xoad/xoad-0.6.0.0-php5.zip?download) is installed in the subdir "xoad". Thats all.
If I start the debugger everything works fine. After the script has finnished, the browser makes the AJAX-call. The call reaches the IDE, the programm freezes and nothing happens. The only solution is to stopp the includet webserver. Then the folowing message appears:
Quote: |
Fatal error while evaluation expression:
""
Debug session has been terminated. |
If I run the script without debugging everting works. If I start the debuggin in the browser using the GET-value "DBGSESSID" it works also. The problem occurs only direct in the IDE.
Here my working enviorment:
Win XP SP2
PhpED 4.5 (Build 4513)
DBG 2.20.2
PHP 5.0.5
What can I do?
Bye