DebugBreak problem |
Site Admin
|
Please check is libwrap is installed on your system.
On many systems this library comes with tcp_wrappers package. |
||||||||||||
|
|
[root@dev /root]# rpm --query libwrap
package libwrap is not installed [root@dev /root]# rpm --query tcp_wrappers tcp_wrappers-7.6-10 It seems odd that I'm able to establish a debug session if the client initiates the session (via the PhpED IDE), but not when the server attempts to initiate the sesssion (via DebugBreak). |
||||||||||||
|
|
Maybe some problem with your tunneled setup - upon hitting debugBreak(), how does the dbg extension know it has to connect to the "local" end of the ssh tunnel?
|
||||||||||||
|
|
> Maybe some problem with your tunneled setup
Possibly, but it works when the IDE initiates the debug session. In addition, if I type "telnet localhost 7869" on the server, it can sucessfully connect back to the client. Finally, I discovered that if I change my Win32 application to include the special "DBGSESSID=0@localhost:7869;d=1" variables as part of the request, then the PhpEd debugger starts successfully. This is what I'm currently doing in order to get my work done, but I'd still like to find a solution to the DebugBreak problem so I don't need to modify my Win32 application in order to debug the PHP code on the server. It's been less than 30 days since I purchased, so I'll probably contact tech suppport directly. |
||||||||||||
|
|
That's what I expected - when starting the session from the IDE, it will append the necessary DBGSESSID parameter to connect to the localhost ssh tunnel end.
As there's no DBGSESSID parameter when calling debugBreak(), the debugger will try to connect to the default 'clienthost' address. I asked ddmitrie to change debugBreak() to accept the DBGSESSID string as a parameter. Maybe that will be in the upcoming 4.0 release? |
||||||||||||
|
|
> As there's no DBGSESSID parameter when calling debugBreak(), the
> debugger will try to connect to the default 'clienthost' address. Is there a configuration setting on server for this? If so, where is it located and what should I set it to (localhost?)? > I asked ddmitrie to change debugBreak() to accept the DBGSESSID > string as a parameter. Are you saying that DebugBreak() doesn't work for you either? I've seen other posts here that seem to indicate DebugBreak() works for them, but maybe they aren't tunneling via SSH? |
||||||||||||
|
|
There's no such server setting.
debugBreak() works fine unless you have to point it to the local ssh tunnel end. |
||||||||||||
|
|
> There's no such server setting.
If that's the case, then I'd like add a second vote for changing DebugBreak() to accept a parameter for DBGSESSID. |
||||||||||||
|
Site Admin
|
you may want to specify
[debugger] debugger.JIT_host=localhost in this case This setting is used when DBGSESSID is not specified. Alternatively you may want to use DBGSESSID=1@localhost:7869;d=1;s=1000 (s=1000 means do not start debug session in next 1000 requests and the counter works through the cookie) so effectively it will not start debug session immediately, but dbg will know what host to connect to to start debug session when it reaches DebugBreak(). |
||||||||||||
|
DebugBreak problem |
|
||
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