![]() ![]() I want to mention something here about xdebug.remote_host xdebug.remote_host="127.0.0.1" Set a breakpoint on first line of index.php and debug.Īdditional settings were suggested on various different posts but above mentioned steps worked perfectly for me. Open Netbeans select New project -> PHP -> PHP project from existing source and select the folder you just copied in htdocs folder. That means your index.php should be at C:/XAMPP/htdocs/(your_website)/index.php Remove semicolons in front of both lines and make remote_enable = 1 xdebug.remote_enable = 1Ĭopy your website code under C:/XAMPP/htdocs/(your_website)/ Remove the semicolon and replace the path with the path of dll you just copied like: zend_extension = "C:xamppphpextphp_xdebug-2.3." zend_extension = “C:xamppphpextphp_xdebug.dll” Goto XAMPP control panel, click on Config button in front of Apache and select php.in, It will diplay you the Xdebug file suitable for your configuration.ĭownload the given Xdebug dll and copy it in C:xamppphpext (Xampp being the default Xampp installation directory) Go to: and paste all the content in TextBox and click Analyze my phpinfo output. Open phpinfo() link on the left pane and copy all the contents on page. Open localhost in browser in should display XAMPP home page. If port 80 is free no problem should arise. Open XAMPP control panel and start Apache. default, Running on other port might need additional configuration settings) ![]() ![]() It is running on port 80 by default.(I am running XAMPP on port 80 i.e. This might not be the solution for everyone but it worked for me and I hope it helps someone. I uninstalled every previous installations of XAMPP and NetBeans and proceeded with fresh installations. After the Struggle for 5-6 days I will list the steps which worked for me. Recently I was trying to host an open source PHP application on my machine(Windows). Source: Netbeans “Waiting For Connection (netbeans-xdebug)” Issue Method 3 Though from what I’ve gathered, the majority of these “Waiting For Connection (netbeans-xdebug)” issues on Windows (with XAMPP, Wamp-Server, etc) are usually a result of Windows Firewall and McAfee (or other firewall and anti-virus software) blocking the connection… The downside here is that all requests will initiate debug data collection and reporting back (making everything slower, and generating more data). … will also start the debugging process for all requests, and not just for the ones with the proper session start query or cookie. If you have further trouble, this… xdebug.remote_autostart=1 The downside here is that any source can connect. This way you don’t have to specify the exact IP (i.e., as in the above answer the LAN IP: 192.168.1.5). If for whatever reason XDebug is not able to report back to 127.0.0.1, or Netbeans is not listening on 127.0.0.1, you can configure XDebug to send the data back to the $_SERVER of the original request… xdebug.remote_connect_back=1 If Netbeans and the Web Server are on the same system, ideally XDebug would be configured to send the data back to 127.0.0.1:9000, on which NetBeans would be listening on (and only per session)… xdebug.remote_enable=1 When Netbeans starts a Debugging session, it starts two Listeners, one on 0.0.0.0:9000 (all IPv4 IPs the system has), and the other on the IPv6 interface. Now save php.ini, restart Apache and try to debug. The values of debugger port and Session Id should match with the port and idekey specified in php.ini. In NetBeans IDE, open Tools-> Options -> PHP -> Debugging. ![]() Xdebug.remote_host=192.168.1.5 – This is the IPv4 address of my system, I changed to this because I couldn’t debug with localhost and 127.0.0.1. Zend_extension = "c:xamppphpextphp_xdebug-2.2." Have you rectified the issue ? If not then please try this. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible. Please note that all the answers may not help you solve the issue immediately. Thank you for visiting the Q&A section on Magenaut. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |