NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Cannot start debugger via DebugBreak with parameter


Joined: 09 Feb 2007
Posts: 4
Reply with quote
In phped-ignores-breakpoints-following-debugbreak-solved-t1314.html, HoTShot asks:

"And why debugbreak is never mentioned in phpED help file? Does it accept parameters? ..."

and dmitri answers:

"Yes it accepts just one argument - a string with the same syntax as in DBGSESSID"


I have the debugger installed on the remote server and working great over an SSH connection back to the IDE -- has been working for months. Typically I use &DBGSESSID=44@localhost:7869 to invoke the debugger.

Now I need to debug an XML service on the same server (written in PHP) that is invoked from another PHP script via CURL. Since the CURL invocation doesn't pass on the session cookies, I wanted to simply insert a DebugBreak() call under certain circumstances to invoke the debugger. Using the parameter as per dmitri's answer above, I used:

DebugBreak("111@localhost:7869") ;

which still returned the message:

DBG 3.1.9
Failed to run DBG session

Reason: connection to the client address 222.222.222.222:7869 is not allowed

Not sure what it means? Visit http://www.nusphere.com/dbg/ for troubleshooting.

Debugger request: "111@localhost:7869"
Request found in: "DebugBreak(arg)"
Target PHP version: "4.3.9"
Server API: "Apache"
Extensions API: "20021010"
Modules API: "20020429"
PHP API: "20020918"


Question: Is that the right DebugBreak syntax for passing the string to the debugger?

Note: The php.ini settings are the defaults

debugger.JIT_enabled Off
debugger.JIT_host clienthost

but I used .htaccess and 'php_value' to set debugger.JIT_enabled On and debugger.JIT_host "localhost"

Lew
View user's profileFind all posts by STlewSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Hope this post covers the problem connection-to-the-client-address-is-not-allowed-t3297.html#13440

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 09 Feb 2007
Posts: 4
Reply with quote
dmitri wrote:
Hope this post covers the problem connection-to-the-client-address-is-not-allowed-t3297.html#13440


No, that post tells me what the error is, but it doesn't answer my question. I'll try again:

I have

debugger.hosts_allow=localhost
debugger.ports=7869

in order to have debugging sessions sent via SSH back to my client. (That's working fine.) I don't want the debugger attempting to connect to any client address other than 'localhost:7869'

So the question is: How do I instruct DebugBreak to create a debug session on 'localhost:7869' ??

I had hoped/assumed that DebugBreak("111@localhost:7869") ; would do it, but as I documented above, it didn't work. Suggestions?

Lew
View user's profileFind all posts by STlewSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Indeed, DebugBreak("111@localhost:7869") is supposed to work this way.
Please try DebugBreak() without arguments and have debugger.JIT_host=localhost
debugger.JIT_port=7869
don't forget to restart Apache and make sure settings are updated in phpinfo()

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 09 Feb 2007
Posts: 4
Reply with quote
Dmitri, Thanks for the confirmation (and the prompt reply!). I'll give your suggestion a try and let you know...

Lew
View user's profileFind all posts by STlewSend private message


Joined: 09 Feb 2007
Posts: 4
Reply with quote
dmitri wrote:
Indeed, DebugBreak("111@localhost:7869") is supposed to work this way.
Please try DebugBreak() without arguments and have debugger.JIT_host=localhost
debugger.JIT_port=7869
don't forget to restart Apache and make sure settings are updated in phpinfo()


Confirmed that it now works as expected using .htaccess to set debugger.JIT_host=localhost and then calling DebugBreak() with no arguments.

Thanks for your help, Dmitri.

Lew
View user's profileFind all posts by STlewSend private message
Cannot start debugger via DebugBreak with parameter
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