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.
Netbeans nightly 201109260601 fails to debug any php web project - debug single file runs fine (php and debugs) but debug project will not accept that the index file exists, no matter the configuration with the error message Cannot debug missing index file. I tested this with a "new php project" as well as an existing project. Works fine in 7.0.1
Can you upload simple PHP project with all settings, where the problem occurs? Thanks a lot.
I get "Cannot debug missing Index file" error when I really don't have any index.php file in my project and if "index.php" file is set in "Project Properties -> Run Configuration -> Index File". If I select another file (which really exists) in this config, everything works fine and I can debug whole project. I think that it's expected behaviour. How you would like to debug project as a "Local Web Site (...)" if you don't have an entry point? Maybe I don't understand you what you mean or what you expect...can you attach your project, where the problem occurs and describe everything again and more clearly? Otherwise this is invalid issue.
I get the same issue. The exact same project will debug in 7.0.1, but not in 7.1. The project has the webroot as a subdirectory with an index.php in the webroot directory. So directory structure looks like: Project Name -> Source Files -> webroot -> index.php I have the webroot selected in the project settings and I select the index.php. When I try to run the debugger, I get "Cannot debug missing index file: index.php". If I try to select a different file, I still get the message. I was able to work around the issue by creating a dummy index.php in the root of my project. Project Name -> Source Files -> index.php <-- This is the dummy index.php -> webroot -> index.php <-- This is the real index.php However, it appears that the project root is being used for debugging instead of the defined webroot. All of my breakpoints are ignored. If I set Netbeans to break at the first line of code, it uses my dummy index.php. If I step-over, etc... it still just stays in my dummy index.php.
I can confirm. 7.1 beta cannot run project debug due to missing index.php file, which of course exists. 7.0.1 works as expected with the same project. Recently I downloaded last updates for 7.1beta and problem still persist. I hope to be fixed soon because I found git support a lot better than in 7.0.1, on other hand I cannot live without debuging Additionaly 7.1 beta ask for selecting debug sources (SS php, SS php with JS, with supress checkbox and note: you can change these settings in Project properties. Maybe i'm blind, but I cannot see such settings in Project properties. best regards
The problem happened to me when I created a new PHP project from existing sources, and selected the option "Put NetBeans metadata into a separate directory". When I didn't select that option everything worked fine. I confirmed the behavior.
> and selected the option "Put NetBeans metadata into a separate directory" Yes, occured for me also when putting metadata in separate directory. Didn't tried when putting metadata in project dir.
I didn't think project meta files location makes difference. But yes, I have also those files located in other location than project files best regards
Now I can reproduce it, but it seems to be PHP Project's issue, so reassigning to Tomas. Thanks for your reports, it really helped me to reproduce it!
Ccing Vlada and increasing priority...it's 7.1 backport candidate.
Fixed, Láďo please verify so I can backport it to the NB 7.1 branch. http://hg.netbeans.org/web-main/rev/d14381e09129 Thanks.
Verified. I tried project structure as described in comment #3 with and without putting metadata to separate folder. Product Version: NetBeans IDE Dev (Build 2011-11-22_12-25-36 ) Java: 1.6.0_29; Java HotSpot(TM) 64-Bit Server VM 20.4-b02 System: Linux version 2.6.38-12-generic running on amd64; UTF-8; en_US (nb)
Transplanted to the 7.1 branch, please verify. Thanks. http://hg.netbeans.org/releases/rev/e153642a198a
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/d14381e09129 User: Tomas Mysik <tmysik@netbeans.org> Log: #202771 - Cannot debug missing index file (xdebug)
Integrated into 'releases' Changeset: http://hg.netbeans.org/releases/rev/e153642a198a User: Tomas Mysik <tmysik@netbeans.org> Log: #202771 - Cannot debug missing index file (xdebug) (transplanted from d14381e091296db394559661199ad768ead49f1e)
Verified in RC1 Product Version: NetBeans IDE 7.1 RC1 (Build 201111232200) Java: 1.7.0_02; Java HotSpot(TM) Client VM 22.0-b10 System: Linux version 3.0.0-12-generic-pae running on i386; UTF-8; en_US (nb)
I can confirm. Works like a charm now.