NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
DebugBreak() works on my XAMPP but not on my Ubuntu server


Joined: 18 Oct 2006
Posts: 75
Reply with quote
I am using DebugBreak() to start parallel debugging of my SOAP client/server and it works nicely on my local PC using XAMPP, but when I switch to our Ubuntu webserver the debug session on the client works (I'm using an SSH tunnel), but the DebugBreak() in the SOAP server code doesn't trigger another debug session.

DBG v3.9.6 on both servers.

Anyone else seen a similar problem?
View user's profileFind all posts by nickweaversSend private messageVisit poster's websiteYahoo Messenger


Joined: 18 Oct 2006
Posts: 75
Reply with quote
I just noticed this in the response from the soap server:
Quote:
Response: <html><head><title>Failed to start debug session</title></head><body><h2>DBG 3.9.6</h2><br> <b>Failed to start DBG session</b><br><br><br> Reason: <b>connection to the client at <i>91.192.195.11:7869</i> is not allowed in php configuration</b><br> Not sure what it means? Visit <a href="http://www.nusphere.com/dbg/?err=-100">http://www.nusphere.com/dbg/</a> for troubleshooting.<br> <br> <pre>Debugger request: "(null)" Request found in: "(null)" Target PHP version: "5.2.x" Server API: "Apache 2.0 Handler" Extensions API: "220060519" Modules API: "20060613" PHP API: "20041225" </pre> </body></html>


The debugger works fine through the SSH tunnel between my PC and the remote webserver using localhost at both ends, but it looks like when the DebugBreak() in the soap server tries to start a new parallel debug session, it doesn't know about this tunnel maybe?
View user's profileFind all posts by nickweaversSend private messageVisit poster's websiteYahoo Messenger


Joined: 18 Oct 2006
Posts: 75
Reply with quote
Thanks to Dimitri for his prompt reply to my support ticket:
Quote:

Hello Nick,

You're correct, debugger is not aware of tunnels.
Say you're connected to two servers using 2 ssh tunnels respectively. Both forward remote connections on the debugger's port to your local (development) machine. If you invoke the debugger using either IDE or browser, it will append "localhost" (or whatever address you typed in the debugger settings) to the debugger request so it will work according to the address in the settings. It's not the case with DebugBreak call. This function expect a request to be passed as an argument or it will try to find client address on its own.
Please check the error message:
Reason: <b>connection to the client at
<i>91.192.195.11:7869</i> is not allowed in php configuration

91.192.195.11 is what it found in the $_SERVER['REMOTE_ADDR'], then it checked php.ini and didn't find appropriate permission to connect to this address, so it returned "is not allowed in php configuration" error.

You may want to use DebugBreak like below:
DebugBreak('1@127.0.0.1:7869')
or
DebugBreak('1@127.0.0.1:7869;p=1,d=1')
if you want to debug and profile.

Both will connect to ssh tunnel socket which is supposedly listening on localhost address & 7869 port
View user's profileFind all posts by nickweaversSend private messageVisit poster's websiteYahoo Messenger
DebugBreak() works on my XAMPP but not on my Ubuntu server
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