I am sure you checked it 10 times but who knows. Read that!Ĭheck the xdebug.ini parameters match the Netbeans ones. ![]() If you copied my documentation, there should be a logging file, inside your docker, at the location: /tmp/xdebug.log. in a place which is considered by your PHP executable. If you don't run your project with the php command, be sure (by displaying a phpinfo() for example) that the xdebug.ini is applied, e.g. You can display them from the Window | Debugging menu if they don't show up automatically. The most useful commands to me are the following one (step into, go to next instruction etc.)Īnd the Variables and Call Stack panels. The command will stop, and Netbeans will be stop at the required line. In your docker launch a PHP command, like php bin/phpunit. Place a breakpoint somewhere in your application, as early as possible (or use the Stop at first line option provided by Netbeans, as visible in the screenshot above).īreakpoint (red square) set at line 63 here ![]() In Netbeans, click on the following icon (or ctrl+F5): Make these parameters match the xdebug.ini config in your docker, as visible on the picture (fields Debugger Port and Session ID) If port 80 is free no problem should arise.,Goto XAMPP control panel, click on Config button in front of Apache and select php.in, 1.) php.ini file content. If it looks OK, carry on, otherwise fix your config first. install netbeans for PHP.,Source: Netbeans 'Waiting For Connection (netbeans-xdebug)' Issue,Open XAMPP control panel and start Apache. Xdebug.remote_log => /tmp/xdebug.log => /tmp/xdebug.log You will see such an output, reflecting your configuration (and the configuration used the next time you use the php command): In your docker, check your xdebug parameters are properly set by using the command php -i | grep xdebug. Otherwise, xdebug will be stuck inside your docker and unable to talk to the Host, where Netbeans sits. It means that the xdebug.remote_host=127.0.0.1 will also be the host IP. The line -network=host is also very important. This parameter needs (also?) to be an environment variable, so don't forget it. install netbeans for PHP.,Source: Netbeans 'Waiting For Connection (netbeans-xdebug)' Issue,Open XAMPP control panel and start Apache. The line -env XDEBUG_CONFIG=\"idekey=my-ide-key\" is kind of duplicate of the xdebug.ini configuration xdebug.idekey="my-ide-key". If not, Netbeans will stop but will be unable to show you the actual line. Your project file names and directories inside your container must be the same as your host architecture. The line -v /home/me/dev/project:/home/me/dev/project is also very important. The idekey will be used in Netbeans as well as the remote port. I highly suggest to use a remote_log parameter, because if it fails, it's where you'll have valuable data. I: Remote address found, connecting to 127.0.0.1:9001.These are the required minimal configuration. ![]() And the following Xdebug settings also placed further down in the php. zendextensionphpxdebug.dll (pointing to the downloaded dll from the Xdebug site). I: Checking header 'HTTP_X_FORWARDED_FOR'. A bit late but thought this should have an answer To get Xdebug working, the minimal configuration I found I needed in the php.ini file was the line to load the extension. In reviewing xdebug logs, the connection is made, returned, but breakpoints are never sent. ![]() I do have the exact same xdebug configuration working properly in Eclipse PDT. I have followed every stack exchange and documentation source I could fine. Server executes code and breaks at breakpoint in IDE I dont know if you still have the same problem, but I have got xdebug / netbeans running after setting the port in netbeans to 9001 and xdebug to 9000. Futhermore, you could add xdebug.idekeynetbeans-xdebug tot the php.ini file. Waiting For Connection (netbeans-xdebug) spins breakpoints not hit browser does not respond You could try the wizard on the site link. Runtime = Java HotSpot(TM) 64-Bit Server VM 25.101-b13 Operating System = Windows 10 version 10.0 running on amd64
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |