NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
AJAX in the PhpED 7 included Debugger (SRV local Webserver)


Joined: 27 Apr 2012
Posts: 6
Reply with quote
Hello,

I have problems to use Debugging of an AJAX website with the included Debugger (not the 3rd Party WEB Server), which shows the site in the Output-Tab in PphED
My javascript should launch the php-file after three char. of input.
But this doesn't happen. No problem with the same site with 3rd Party WEB Server, I can debug.

So now I am not sure if principally I can debug any AJAX within the included Debugger and WEB Server or maybe THIS is my problem.

Can I debug AJAX sites within PhpED 7 without using this XOAD?

frank

Windows XP SP3 with PhpED 7.0
View user's profileFind all posts by francwalterSend private message
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
The NuSphere DBG module uses a browser cookie to know if it should be debugging or not. If the web server receives that cookie, DBG will see it and will know to trigger breakpoints, etc. Alternatively, the URL that is used with AJAX can include the DBGSESSID query string just like when you start a debug session directly from PhpED.

If the web server request does not have the cookie or the DBGSESSID query string, you might have to use DebugBreak() to force DBG to start debugging. DebugBreak accepts an optional argument to tell it how to communicate with your PhpED. If DBG does not know about your PhpED computer (the debug client) then use must tell it about your computer in the DebugBreak argument.

Have a look at http://forum.nusphere.com/remote-debug-when-server-receives-a-request-t8269.html

In my experience, PhpED together with DBG and maybe DebugBreak() can debug *any* PHP, as long as DBG can be loaded as a PHP extension.
View user's profileFind all posts by plugnplaySend private message


Joined: 27 Apr 2012
Posts: 6
Reply with quote
Thank you very much!

I think my problem is some permission issue, I have errors in the log, that the js-file cannot be accessed.

frank
View user's profileFind all posts by francwalterSend private message
AJAX in the PhpED 7 included Debugger (SRV local Webserver)
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic