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.

Bug 171849 - Stop on first line with non-blank auto_prepend_file fails to display file
Summary: Stop on first line with non-blank auto_prepend_file fails to display file
Status: RESOLVED INCOMPLETE
Alias: None
Product: php
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: Macintosh Mac OS X
: P2 blocker with 1 vote (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-09 19:41 UTC by dpatterson
Modified: 2009-09-19 15:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Netbeans log (23.61 KB, text/plain)
2009-09-19 15:16 UTC, dpatterson
Details
Xdebug log (39.85 KB, text/plain)
2009-09-19 15:16 UTC, dpatterson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dpatterson 2009-09-09 19:41:53 UTC
If the php.ini setting auto_prepend_file is non-blank, the debugger fails to openthe auto prepend file and display the
first line when "Stop at the First Line" is checked in the PHP preferences.

This is very confusing unless you happen to have the Call Stack debugger window open because it appears that the debug
session failed to start correctly. 

You have no indication in the NB IDE that the debugger is waiting for user input accept that the debug buttons (step,
etc.) are enabled.
Comment 1 dpatterson 2009-09-09 19:46:45 UTC
As it turns out, the debug session is hosed from that point on.
If you click any of the step buttons, the debugger will execute as expected, (as evidenced by changes in the Call Stack
and Variables windows), but none of the files will be displayed and there will never be any indication of what line you
are on other than what is listed in the Call Stack window.
Comment 2 dpatterson 2009-09-09 19:53:38 UTC
Sorry. I should have tested this more fully before reporting.
Turns out that if you disable Stop ad First Line, debugging fails to start up at all.
I set a break point at the first line of the "real" PHP script (the one in the URL).
The debugger doesn't stop there. The request is just processed as if there were no debugger.

As the site I am working on requires an auto prepend file, this is a critical issue, at least for me.
Comment 3 rmatous 2009-09-10 07:27:32 UTC
auto_prepend_file must be part of your project. Is it?

Please, provide me with logging information
http://wiki.netbeans.org/HowToConfigureXDebug#section-HowToConfigureXDebug-EnableXdebugLogging
Comment 4 Filip Zamboj 2009-09-18 16:11:49 UTC
Dear reporter, provide requested information, please. We will have to close the issue as invalid in case of inactivity
for more than 4 weeks. 
Comment 5 dpatterson 2009-09-19 15:16:22 UTC
Created attachment 87953 [details]
Netbeans log
Comment 6 dpatterson 2009-09-19 15:16:49 UTC
Created attachment 87954 [details]
Xdebug log
Comment 7 dpatterson 2009-09-19 15:17:34 UTC
Yes. The auto-prepend file is part of the project (at least it's in the same directory as the index.php file).