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: | Code being executed after debug session ends | ||
---|---|---|---|
Product: | php | Reporter: | darren_smith |
Component: | Debugger | Assignee: | issues@php <issues> |
Status: | NEW --- | ||
Severity: | normal | CC: | tmysik |
Priority: | P3 | ||
Version: | 8.2 | ||
Hardware: | PC | ||
OS: | Windows 10 x64 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
darren_smith
2017-01-13 23:52:47 UTC
Ack! All URLs in the above bug should start with http://localhost/project/test Another test, with some more time data: public function index() { echo "Before breakpoint at " . date('h:i:s', time()) . "<br>"; echo "At breakpoint " . date('h:i:s', time()) . "<br>"; echo "After breakpoint " . date('h:i:s', time()) . "<br>"; echo "Two after breakpoint " . date('h:i:s', time()) . "<br>"; echo "Three after breakpoint " . date('h:i:s', time()) . "<br>"; } 1. Set breakpoint on the line that has echo "At breakpoint " . date('h:i:s', time()) . "<br>"; 2. Open a command line, enter "php -a", then echo date('h:i:s', time()); 3. Note that time is 12:37:41 4. Select Debug->Debug Project 5. In the popup box, enter the URL that loads the page where the above code is located: http://localhost/project/test 6. Select "OK" 7. See the Chrome opens a browser window at http://localhost/project/test?XDEBUG_SESSION_START=netbeans-xdebug 8. See that nothing is displayed in the browser, as expected. 9. See that debugger has stopped on first line of code (for Codeigniter, it's define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'development'); 10. Select Continue 11. Debugger stops on the breakpoint set in step 1. 11. Wait 30 seconds. 12. Select Finish Debugger Session. 13. In CLI running php, enter echo date('h:i:s', time()); and note time is 12:38:32 14. Expected browser output (approximate time): Before breakpoint at 12:37:45 13. Actual browser output (at URL = http://localhost/project/test?XDEBUG_SESSION_STOP_NO_EXEC=netbeans-xdebug): Before breakpoint at 12:38:25 At breakpoint 12:38:25 After breakpoint 12:38:25 Two after breakpoint 12:38:25 Three after breakpoint 12:38:25 So, based on the timestamps, it looks like the code is executed AFTER I stop the debugger session. Sorry, I do not think that this is P1, see [1]. Or am I missing something? Thanks. [1] http://wiki.netbeans.org/BugPriorityGuidelines |