This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | xdebug port is occupied problem | ||
---|---|---|---|
Product: | php | Reporter: | dimis283 <dimis283> |
Component: | Debugger | Assignee: | rmatous <rmatous> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | sepehrmm |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
dimis283
2008-10-10 07:49:56 UTC
Not reproducible for me, I'm going to investigate more deeply. For the time being, please, could you try to find, what is using the port? I use this command on Linux: watch 'netstat -nplta | grep 9000' You could try something similar on windows and please let me know. Would be also nice to get more info, you could put into your php.ini setting like this: xdebug.remote_log=/tmp/xdebug.log (see http://www.xdebug.org/docs/all_settings) and restart apache server. FYI - xdebug.remote_log setting allows you to log debugger communication. Users' comments: > The error was triggered only when I used the IE7 and produced an event which ran into a breakpoint. When I did this for > a second time I got the error message that the port 9000 was already in use. > With FF3 everything works as expected. (other user) > For me too that problem is with IE. So, seems that NEEDS to be EVALUATED with IE7 *** Issue 154092 has been marked as a duplicate of this issue. *** tested on Vista with IE7 && FF - both worked for me Please, I would need help - if you reproduce this issue, please try to find out why the port is occupied (see my comment from Oct 10) I have the same problem with the ports; works for a few times, then gets the port occupied message. Rebooting & restarting doesn't help. I use XPsp2 & Firefox 3, the latest updated netbeans 6.5. Xdebug DOES work with Eclipse & the xdebug gui client. But of course when I test with netbeans, it is after a clean reboot,, with neither of those other applications running. I did the netstat test using cigwin. With netbeans running, after trying to debug & receiving the error, the result is: netstat: TCP 0.0.0.0:9000 0.0.0.0:0 LISTENING 1592 ps: 1592 0 0 1592 ? 0 13:10:46 E:\Program Files\Java\jdk1.6.0_10\jre\bin\java.exe INTERESTINGLY: When I shut down netbeans, netstat returns the same; process 1592 still listening on port 9000; BUT: java.exe & PID 1592 no longer appears in either ps -aW OR in the Windows Task Manager. So maybe some windows issue failing to deregister a listner? I don't know. Any thoughts? I'd be happy to perform any additional tests to clarify this issue. I can't reproduce but I tried to rewrite relevant piece of code and did some relevant changes like: keep port 9000 for the whole dbg session (so no need to reopen it many times), checked closing port, synchronization, deamon threads && others - I hope this issue to be fixed for M3 Please, verify or reopen, thanks |