| View previous topic :: View next topic |
| Author |
Message |
r_honey
Joined: 02 Sep 2008 Posts: 12
|
Posted: Tue Apr 07, 2009 8:46 am Post subject: Initiating a XDebug Debugger session |
|
|
This is a SOS call. I have spent in excess of 3 days trying to get Zend Studio degugger going on my Win Vista 32 Ultimate machine.
When everything failed, I decided to give NetBeans with XDebug a try. After hours and hours of configurations & reconfigurations (initially Apache just crashed with XDebug enabled. I changed its version 2-3 times so it is not crashing anymore), the localhost was up running.
But trying to initiate a Debug session in NetBeans gave a message: Port 9000 is already in use. Please configure the IDE to use another port.
I have attached the output of phpinfo() and my php.ini file with this post. Any help in getting the debugger going would be greatly appreciated.
As a side-note, Apache still crashes when I shut-it down. And Apache has been crashing at shut-down since the time I installed it, with Zend/XDebug enabled/disabled.
But more importantly for me is to get the debugger going somehow!!!
| Description: |
| Contents of phpinfo() and php.ini on my development machine. |
|
 Download |
| Filename: |
log.zip |
| Filesize: |
44.2 KB |
| Downloaded: |
52 Time(s) |
|
|
| Back to top |
|
 |
Jeff Rubinoff Posted via mailing list.
|
Posted: Tue Apr 07, 2009 2:26 pm Post subject: Initiating a XDebug Debugger session |
|
|
r_honey,
Do you know what port xdebug uses? You can "tell" NetBeans what port
Xdebug uses in the Options window. Go to Tools > Options and look in the
PHP tab for the Debugger port field. You can also manually set the port
that xdebug uses. In php.ini, set xdebug.remote_port=(some port like
9010 or 9100). This value must be the same as the value in Options.
What do you have running on 9000?
Frankly, I fear that you may have some problems with your PHP setup that
require someone to look at your machine physically rather than advise
you over the Internet. If you can't get your PHP configuration working
at all and you don't want to start over reinstalling from scratch,
consider trying our pre-configured OpenSolaris PHP web stack image,
which runs in Sun VirtualBox. See
http://www.netbeans.org/kb/docs/php/webstack.html.
Jeff
r_honey wrote:
| Quote: | This is a SOS call. I have spent in excess of 3 days trying to get Zend Studio degugger going on my Win Vista 32 Ultimate machine.
When everything failed, I decided to give NetBeans with XDebug a try. After hours and hours of configurations & reconfigurations (initially Apache just crashed with XDebug enabled. I changed its version 2-3 times so it is not crashing anymore), the localhost was up running.
But trying to initiate a Debug session in NetBeans gave a message: Port 9000 is already in use. Please configure the IDE to use another port.
I have attached the output of phpinfo() and my php.ini file with this post. Any help in getting the debugger going would be greatly appreciated.
As a side-note, Apache still crashes when I shut-it down. And Apache has been crashing at shut-down since the time I installed it, with Zend/XDebug enabled/disabled.
But more importantly for me is to get the debugger going somehow!!!
Attachments:
http://forums.netbeans.org//files/log_227.zip
|
|
|
| Back to top |
|
 |
r_honey
Joined: 02 Sep 2008 Posts: 12
|
Posted: Tue Apr 07, 2009 2:50 pm Post subject: Re: Initiating a XDebug Debugger session |
|
|
| Jeff Rubinoff wrote: | r_honey,
Do you know what port xdebug uses?
Frankly, I fear that you may have some problems with your PHP setup that
require someone to look at your machine physically rather than advise
you over the Internet.
Jeff
|
Hi Jeff, I should be able to follow any advice offered. I have been doing all this for long enough to be able to follow.
Regarding the ports, yes I have set them correct. They are the same values in php.ini & NetBeans Options (initially it was 9000, but when I got that message, I tried others like 10110, 10111 all producing the same message).
Other users have also reported the same problem on forums. However, it did not quite become obvious to me what this error actually means??
|
|
| Back to top |
|
 |
JeffRubinoff
Joined: 03 Dec 2008 Posts: 18 Location: Prague
|
Posted: Tue Apr 07, 2009 7:41 pm Post subject: |
|
|
r_honey,
No offense meant. I'm sure you know how to follow our advice. I'm more worried that none of us will be able to advise you, because the issue might be too complicated to figure out over the Net. I hope I am wrong and I probably am.
|
|
| Back to top |
|
 |
radek matous Posted via mailing list.
|
Posted: Tue Apr 07, 2009 9:35 pm Post subject: Initiating a XDebug Debugger session |
|
|
Hi,
1/ php -mf d:\xampp\apache\bin\php.ini you should see something like:
[Zend Modules]
Xdebug
2/ you can try this way how to check xdebug configuration
http://blogs.sun.com/netbeansphp/entry/howto_check_xdebug_installation
3/ If you use NB 6.5 you can try dev builds
http://bertram.netbeans.org/hudson/job/PHP-build/
4/ I know about similar problems (reported already against both NB IDE
and xdebug) in Windows Vista but I still don't know the cause
5/ you can try investigate which process keeps the port open
6/ you can try to see
http://wiki.netbeans.org/HowToConfigureXDebug
Radek
r_honey wrote:
| Quote: | This is a SOS call. I have spent in excess of 3 days trying to get Zend Studio degugger going on my Win Vista 32 Ultimate machine.
When everything failed, I decided to give NetBeans with XDebug a try. After hours and hours of configurations & reconfigurations (initially Apache just crashed with XDebug enabled. I changed its version 2-3 times so it is not crashing anymore), the localhost was up running.
But trying to initiate a Debug session in NetBeans gave a message: Port 9000 is already in use. Please configure the IDE to use another port.
I have attached the output of phpinfo() and my php.ini file with this post. Any help in getting the debugger going would be greatly appreciated.
As a side-note, Apache still crashes when I shut-it down. And Apache has been crashing at shut-down since the time I installed it, with Zend/XDebug enabled/disabled.
But more importantly for me is to get the debugger going somehow!!!
Attachments:
http://forums.netbeans.org//files/log_227.zip
|
|
|
| Back to top |
|
 |
JeffRubinoff
Joined: 03 Dec 2008 Posts: 18 Location: Prague
|
Posted: Tue Apr 07, 2009 10:47 pm Post subject: |
|
|
| Note that I've just changed the Windows setup instructions to warn of Apache crash problems when using the Xdebug bundled with XAMPP.
|
|
| Back to top |
|
 |
r_honey
Joined: 02 Sep 2008 Posts: 12
|
Posted: Wed Apr 08, 2009 8:50 am Post subject: Re: Initiating a XDebug Debugger session |
|
|
Thanx a ton Radex. I atleast had some things going.
For a start, Googling revealed that many people are having the same problem with Xampp 1.7/Vista. I found an advice for going back to 1.6.8, which I did (uninstalled 1.7 & installed Xampp 1.6. .
Things are beginning to happen now. First of all, I am reattaching the php.ini & phpinfo() now (for version 1.6.8 that had been reinstalled).
Now, Radek, I checked XDebug installation as mentioned on your point 2 above. It printed out a success message, which means XDebug was working on port 9000 correctly.
Then, I tried your point 1 above. To my surprise, it printed:
[Zend Modules]
Zend Extension Manager
Zend Optimizer
This output is for the same php.ini file attached with this post. I am totally clueless why XDebug is not there If someone can check it).
Finally, it appeared to me that everything was working fine. When I started Debugging from NetBeans, the control broke into the debugger, and I was able to step-through. However, it again showed "Port 9000 already occupied." Although I could not understand that once control was inside the debugger, and I just asked the IDE to continue, why did it then show this message. I am still analyzing who occupied the port at that moment. But I made this post in the meantime, if anyone can provide some insight.
| Description: |
| New Xampp 1.6.8 phpinfo() & php.ini (different from the first post). |
|
 Download |
| Filename: |
log.zip |
| Filesize: |
43.79 KB |
| Downloaded: |
53 Time(s) |
|
|
| Back to top |
|
 |
r_honey
Joined: 02 Sep 2008 Posts: 12
|
Posted: Wed Apr 08, 2009 9:06 am Post subject: Re: Initiating a XDebug Debugger session |
|
|
OK, I found out who was occupying the port:
The following command :
netstat -ano |find /i "listening"
gave this entry:
TCP [::]:9000 [::]:0 LISTENING 3700
I checked the Process with PID 3700
It was (no prizes for guessing it):
Image PID Username CPU Memory
java.exe 3700 Rahul Singla 00 122,768 K
|
|
| Back to top |
|
 |
radek matous Posted via mailing list.
|
Posted: Wed Apr 08, 2009 3:52 pm Post subject: Initiating a XDebug Debugger session |
|
|
r_honey wrote:
| Quote: | OK, I found out who was occupying the port:
The following command :
netstat -ano |find /i "listening"
gave this entry:
TCP [::]:9000 [::]:0 LISTENING 3700
I checked the Process with PID 3700
It was (no prizes for guessing it):
Image PID Username CPU Memory
java.exe 3700 Rahul Singla 00 122,768 K
| So, probably NetBeans? Do you use NB6.5 or current dev build?
Radek
|
|
| Back to top |
|
 |
r_honey
Joined: 02 Sep 2008 Posts: 12
|
Posted: Wed Apr 08, 2009 4:06 pm Post subject: Re: Initiating a XDebug Debugger session |
|
|
| radek matous wrote: | So, probably NetBeans? Do you use NB6.5 or current dev build?
Radek |
I am using the current NB 6.5 build. I downloaded the PHP only build from NetBeans.org 3-4 days back.
|
|
| Back to top |
|
 |
radek matous Posted via mailing list.
|
Posted: Wed Apr 08, 2009 7:15 pm Post subject: Initiating a XDebug Debugger session |
|
|
r_honey wrote:
| Quote: | | Quote: | I am using the current NB 6.5 build. I downloaded the PHP only build from NetBeans.org 3-4 days back.
|
| Although daily builds are still in development, I would recommend at
least to give it try (many fixes went there).
Can be downloaded from:
http://bertram.netbeans.org/hudson/job/PHP-build/
You can enable xdebug logging (see
http://www.xdebug.org/docs/all_settings):
xdebug.remote_log=/log_path/xdebug.log
Radek
|
|
| Back to top |
|
 |
r_honey
Joined: 02 Sep 2008 Posts: 12
|
Posted: Fri Apr 10, 2009 9:08 am Post subject: Re: Initiating a XDebug Debugger session |
|
|
I am downloading it. Let's see is that resolves the issue.
|
|
| Back to top |
|
 |
r_honey
Joined: 02 Sep 2008 Posts: 12
|
Posted: Fri Apr 10, 2009 9:33 am Post subject: Re: Initiating a XDebug Debugger session |
|
|
Yippi. I have finally got it right with no Apache crashes, with breakpoints being hit, and everything going fine.
For those interested, I downloaded the April 9 successful build of NetBeans, and extracted it over my existing NetBeans installation.
However, on first use, it looks like the IDE is lacking some punch (read features) compared to Java counterpart. When we hover over a variable during debugging, no tooltip showing its value pops up. There is no indication when the control breaks into the debugger when a breakpoint is hit. You just notice that the page is not completed loaded into the browser, and you check the IDE to see it is waiting at a breakpoint.
Still, much better than Nothing.
Thanx all you guys for replying and help me solve this.
|
|
| Back to top |
|
 |
radek matous Posted via mailing list.
|
Posted: Tue Apr 14, 2009 10:54 am Post subject: Initiating a XDebug Debugger session |
|
|
r_honey wrote:
| Quote: | Yippi. I have finally got it right with no Apache crashes, with breakpoints being hit, and everything going fine.
For those interested, I downloaded the April 9 successful build of NetBeans, and extracted it over my existing NetBeans installation.
However, on first use, it looks like the IDE is lacking some punch (read features) compared to Java counterpart. When we hover over a variable during debugging, no tooltip showing its value pops up. There is no indication when the control breaks into the debugger when a breakpoint is hit.
| There should be indication that the control is suspended: the currently
debugged file should be opened and the appropriate line should be
annotated (green background).
If its not true describe it and report it, thanks
You can report it at:
http://www.netbeans.org/issues/enter_bug.cgi?component=php
Radek
| Quote: | You just notice that the page is not completed loaded into the browser, and you check the IDE to see it is waiting at a breakpoint.
Still, much better than Nothing.
Thanx all you guys for replying and help me solve this.
-------------------------------------------------------------------
|
|
|
| Back to top |
|
 |
r_honey
Joined: 02 Sep 2008 Posts: 12
|
Posted: Tue Apr 14, 2009 2:13 pm Post subject: Re: Initiating a XDebug Debugger session |
|
|
[quote="radek matous"]There should be indication that the control is suspended: the currently
debugged file should be opened and the appropriate line should be
annotated (green background).
If its not true describe it and report it, thanks
You can report it at:
http://www.netbeans.org/issues/enter_bug.cgi?component=php
Radek
[quote]
No, the thing you are talking is there. The green line marking the next line to be executed is there.
What I mean is that when I am debugging Java app with NetBeans, and NetBeans hits a breakpoint, its window in the status bar blinks or the control automatically switches to NetBeans.
However, with PHP, there is no such indication, it is just that the page does not load completed. When I manually switch to NetBeans, it shows that green marked line. I was hoping the control to automatically switch to NetBeans on hitting a breakpoint, or atleast its window in taskbar blink.
However, the other problem is there. No tooltip showing the variable's value pops up, on hovering mouse pointer over a variable.
|
|
| Back to top |
|
 |
|