NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
How to Debug SOAP server when using the PHP5/ext ?


Joined: 18 Oct 2006
Posts: 75
Reply with quote
I find the debug across sessions support in PhpEd invaluable when debugging php scripts that do http post/get requests where you can follow the execution throughout. I am new to SOAP and just started trying to code a server. I was hoping that I could create a simple client to test the server and watch as the debugger followed the code execution from client to server as control was transferred, but when I put breakpoints in the server and run the client, the debugger doesn't stop at them. Can the PhpEd debugger follow the execution from client to server and back when the PHP/ext SOAP extension is used, or does the fact that it is a C program create a block? Or am I just doing it wrong?

TIA,
Nick
View user's profileFind all posts by nickweaversSend private messageVisit poster's websiteYahoo Messenger


Joined: 18 Oct 2006
Posts: 75
Reply with quote
Oh yes! It's there.

Just pop the function DebugBreak(); on any line in your soap server and when the interpreter reaches it it switches you straight into debug.

Life is good again thanks to PhpEd Very Happy
View user's profileFind all posts by nickweaversSend private messageVisit poster's websiteYahoo Messenger


Joined: 18 Oct 2006
Posts: 75
Reply with quote
It's worth putting a breakpoint in the client script before the $client->__soapCall( ... ) and then single stepping through it, so it pauses while you are off stepping through code in the server, or you may well find apache time's out the client.
View user's profileFind all posts by nickweaversSend private messageVisit poster's websiteYahoo Messenger
How to Debug SOAP server when using the PHP5/ext ?
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