127.0.0.1:7869 is not allowed in php configuration |
|
I'm trying to debug a command line script on my prod server.
In php.ini: ============= debugger.enabled=on debugger.profiler_enabled=on debugger.hosts_allow=24.201.40.XXX debugger.hosts_deny=ALL debugger.ports=7869, 10000/16 ============= When I start the script using: ============= php myscript.php DBGSESSID=1@24.201.40.XXX:7869 ============= It works! A breakpoint stops the execution and my local phped is able to debug the server script. But when I use a "debugBreak();" inside the script itself instead, I get: ============= DBG 3.9.2 Failed to start DBG session Reason: connection to the client at 127.0.0.1:7869 is not allowed in php configuration Not sure what it means? Visit http://www.nusphere.com/dbg/?err=-100 for troubleshooting. Debugger request: "(null)" Request found in: "(null)" Target PHP version: "5.2.x" Server API: "Command Line Interface" Extensions API: "220060519" Modules API: "20060613" PHP API: "20041225" ============= I tried adding 127.0.0.1 to the hosts_allow: ============= debugger.enabled=on debugger.profiler_enabled=on debugger.hosts_allow=24.201.40.XXX 127.0.0.1 debugger.hosts_deny=ALL debugger.ports=7869, 10000/16 ============= But then I get this error: ============= DBG 3.9.2 Failed to start DBG session Reason: failed to connect to the client at 127.0.0.1:7869, please make sure that IDE is running Not sure what it means? Visit http://www.nusphere.com/dbg/?err=-5 for troubleshooting. Debugger request: "(null)" Request found in: "(null)" Target PHP version: "5.2.x" Server API: "Command Line Interface" Extensions API: "220060519" Modules API: "20060613" PHP API: "20041225" ============= Any idea? I would need to be able to debug using "debugBreak()"... |
||||||||||||
|
|
Well, this problem led me to learn how to use ssh tunelling... And this is a great thing! I'll always debug like this now.
|
||||||||||||
|
127.0.0.1:7869 is not allowed in php configuration |
|
||
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