Netbeans Xdebug Does Not Work

Asked

Viewed 2,566 times

2

I am trying to use Netbeans Xdebug. I mark the line, and then click on "Debug File". However, nothing happens to me! Do you have any specific settings I should do? When I do this, in the right corner of the Netbeans IDE is "Waiting for Connection (netbeans-Xdebug)".

  • Xdebug from php? It is enabled on the server?

  • In php.ini? If so, what line does it enable?

  • look for that line in php.ini: [XDebug] zend_extension = caminho da extensão. and remove the point and comma from it, restart apache, now the error msg should appear in orange that means Xdebug has been enable correctly.

  • zend_extension = "D:/wamp/bin/php/php5.4.12/zend_ext/php_xdebug-2.2.3-5.4-vc9-x86_64.dll" . It’s that way, I think it’s all right! And it still didn’t work!

2 answers

2

Andraw, I’m a beginner in and went through the same problem, researched, researched, and gave!

To check the correct path to place the dll of Xdebug, use the Xdebug website itself, where you have a part of Installation instructions*, provide you the correct path, as @rray should start appearing errors in orange.

php.ini
(in my php.ini had nothing related to Xdebug)

[XDebug]
zend_extension = C:\xampp\php\ext\php_xdebug-2.4.0-5.6-vc11.dll
xdebug.remote_enable=1
xdebug.profiler_enable=1

The path was what the site with the instructions generated me:

You’re already running the Latest Xdebug version

But here are the Instructions anyway:

  1. Download php_xdebug-2.4.0-5.6-vc11. dll
  2. Move the downloaded file to C: xampp php ext
  3. Update C:\xampp\php\php.ini and change the line
    zend_extension = C:\xampp\php\ext\php_xdebug-2.4.0-5.6-vc11.dll
  4. Restart the webserver

*Paste into the site text box, output from phpinfo() (can be the source code of the generated HTML page, or the output of the php -i)

Any questions you may ask, I’ve been trying to solve this may have missed something :)

0

add the following section in your php.ini

[XDebug]
zend_extension_ts = "./php/ext/php_xdebug<version>.dll"
xdebug.remote_enable=1
xdebug.remote_autostart = 1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir="<XAMPP_HOME>\tmp"

Source: https://netbeans.org/kb/docs/php/configure-php-environment-windows.html

Browser other questions tagged

You are not signed in. Login or sign up in order to post.