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.
Ubuntu 10.04 beta1 Product Version: NetBeans IDE 6.8 (Build 100204-unknown-revn) Java: 1.6.0_18; OpenJDK Client VM 16.0-b13 System: Linux version 2.6.32-16-generic running on i386; UTF-8; ru_RU (nb) PHP 5.3.1-5ubuntu2 with Suhosin-Patch (cli) (built: Mar 22 2010 13:47:21) Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies with Xdebug v2.0.5, Copyright (c) 2002-2008, by Derick Rethans PHP is run as fastcgi When I start debugging, all local variables in Watch panel appear without $ prefix. So they all are uninitialized (and not shown by default until I check "uninitialized" checkbox in Filters context menu) If I manually add any local variable with $ prefix, it's shown as it should. Bug is reproduced each time I start debugging.
can you reproduce in newer build, please? http://bertram.netbeans.org/hudson/job/PHP-Build/? if yes then provide code snippet we could use for testing. thanks.
Just tested on NetBeans-dev-2010-03-25_12-23-45 -php.zip Issue still exists. I run php as fastcgi with nginx. If you have installed nginx and configured php-fastcgi, here is info on how to reproduce: 1.Create this php-script as /tmp/test-site/index.php: <?php $var = 'test'; echo $var; 2. Add this string to /etc/hosts (to isolate site for debugging) 127.0.0.1 test-site.local 3.Create this config file as /etc/nginx/sites-enabled/test-site.conf: server { server_name test-site.local; location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME /tmp/test-site/$fastcgi_script_name; include fastcgi_params; } } and restart nginx 4. Add new PHP project to netbeans located in /tmp/test-site and set Project Properties/Run Configuration/Project URL to http://test-site.local/ 5. Set breakpoint to "echo $var" string of index.php 6. Run debug - debugger will stop on breakpoint. 7. Nothing but Superglobals is seen in Variables panel until you check 'uninitialized' checkbox. And when you check it, you will see 'var', not '$var' - obviously as 'unititalized'. If you manually add '$var' - you will see it as string with value 'test' BTW, when I debug same script as command-line script, it works fine. Nginx/fastcgi bug?
Thanks a lot for detailed steps. I'll try tomorrow then. so far I can say I can't reproduce if php installed as module. I'd like to point out here that using watches is not very safe and xdebug is known to be unstable when using this feature. see bug 180252.
@reporter: firstly I am sorry I didn't have time to try to reproduce yet. On the other hand, I think you would save me significant amount of time trying to setup php-cgi and nginx on virtual box .. Would you be able to submit messages log and xdebug log? see information on http://wiki.netbeans.org/HowToConfigureXDebug#Enable_Xdebug_logging. We will need both, xdebug and log from NB so we can see communication on both sides and try to resolve what's missing. thanks a lot.
Created attachment 97669 [details] march build of netbeans, ide log
Created attachment 97670 [details] march build of netbeans, ide log
Created attachment 97671 [details] march build of netbeans, xdebug log
I've attached logs from build of Netbeans 6.9, bug occurs there also. First two logs are equal (uploaded two times by mistake) After running IDE I've set breakpoint to "echo $var;" line and have started debugging. When debugger has stopped on that line, I've made a copy of the logs.
batch reassigning
Can you check if the bug still appears in NB 7.0RC1 or greater? Thanks.
Batch reassigning.
Reassigning to the module owner.
2 years old issue and no response from reporter -> P4 as a reminder.