Cannot start debugger via DebugBreak with parameter |
|
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 |
||||||||||||
|
Site Admin
|
Hope this post covers the problem connection-to-the-client-address-is-not-allowed-t3297.html#13440
|
||||||||||||
_________________ The PHP IDE team |
|
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 |
||||||||||||||
|
Site Admin
|
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 |
|
Dmitri, Thanks for the confirmation (and the prompt reply!). I'll give your suggestion a try and let you know...
Lew |
||||||||||||
|
Cannot start debugger via DebugBreak with parameter |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by