Eclipse and NetBeans PHP Xdebug session never completes
I am using UniServer Zero XIII with PHP 7.1. From the phpinfo.php file, I can see that xdebug enabled: When I try to debug the source code and use a breakpoint on NetBeans, the XDebug session never completed: When I go to see the execution of the web application from the web browser, it keeps trying to load the page, but it never completes. I experience the same on Eclipse: I am trying to understand why the Xdebug session never completes, and what I need to do to fix it. Thank you.
I think maybe found the solution, the problem was that you deleted the metadata: When a project (including the source roots) is deleted or moved outside of NetBeans and while NetBeans are closed, then after NetBeans are started again, line breakpoints belonging to sources which do not exist any more are deleted. Therefore, IMHO, in your case either some exceptions were thrown, which interrupted the breakpoints elimination and which would be in your messages.log file, or you've deleted just the project metadata without the sources. And this is the only case in which I'm able to reproduce your issue: 1) Create a Servlet2Stateless sample project (or any Java project should work this way IMHO) 2) Right-click on the project in Projects window and select Copy... 3) Press Copy button 4) Open Servlet2Stateless.java file from the copied project (Servlet2Stateless_1) 5) Submit breakpoint to line 72 6) Debug the Servlet2Stateless_1 project, after it suspends on the breakpoint, press continue and finish the debugger session. 7) Delete your proyect_1 project, but be sure not to check on "Also delete sources under..." 8) Debug the original project 9) You get en error message "Not able to submit breakpoint LineBreakpoint Servlet2Stateless.java:72, reason: No source root found for URL 'file:/tmp/NetBeansProjects/ServletStateless_1/src/java/servlet/stateless/ Servlet2Stateless.java'. Verify the setup of project sources." 10) This message is harmless, but if you want to get rid of is, it's easy to click on "Invalid LineBreakpoint Servlet2Stateless.java : 72" line, which opens the source file and remove the breakpoint. Since there is nothing severe in this issue, I'm reducing the priority to P3. We can think about fixing this by ignoring breakpoints that belong to source roots without a corresponding project and not being added as an extra source root in the Sources window. Check the whole info here
php header not working on live server [duplicate]
How to remove project name in the route name in Laravel
PHP DateTime rounding months properly for missing day numbers? [duplicate]
Installing error Datastax-PHP driver on windows
Mail() not works with 2 variable or more [closed]
Populate html dropdown menu form database
Wordpress - Integrating custom web application [closed]
preg replace https won't work
How to setup Multi language store in magento?
Print variables on php excel
How to match pass strings to a php function that checks mysql database
select statement runs very slow on mysql
How to register a twig extension in php
Symfony FOSUserbundle - Best practice for setting role on account creation (with db query)
Set up .conf file to allow for “wildcard” in URL
POST between Python and PHP not working?