Please note that the problem has already been solved by itself, but you can take it as an example of the working Xdebug configuration in the php.ini file.
I am new to Netbeans and PHP, and after 5 days in the project I realized that I really need a debugger ^^ So now I'm trying to install Xdebug with Netbeans, but it just doesn’t work .....
So far I have read many articles here on the forum and elsewhere on the Internet, but still after using all these adoptions .... nothing is the same.
Ok, here is my configuration: Windows7, Netbeans 7.2, PHP Version 5.4.4, XAMPP 1.8.0.
What i have done so far:
- clean installation of XAMPP (saving old htdocs and mysql, the project) and running phpinfo () and sending the contents to wizzard
then following the instructions of the xdebug wizard
- Move the downloaded file to the folder C: \ xampp \ php \ ext
- Edit C: \ xampp \ php \ php.ini and add the line zend_extension = C: \ xampp \ php \ ext \ php_xdebug-2.2.1-5.4-vc9.dll Restart the web server
in one post, someone mentioned that the file name "php_xdebug-2.2.1-5.4-vc9.dll" was not accepted once, so I changed it to "php_xdebug.dll" and replaced the existing one
- after editing php.ini it now looks like this: the rest of Xdebug is commented out:
[XDebug] zend_extension = "C:\xampp\php\ext\php_xdebug.dll" xdebug.profiler_append = 0 xdebug.profiler_enable = 0 xdebug.profiler_enable_trigger = 0 xdebug.profiler_output_dir = "C:\xampp\tmp" xdebug.profiler_output_name = "xdebug_profile.%R::%u" xdebug.remote_enable =On xdebug.remote_handler =dbgp xdebug.remote_host =127.0.0.1 xdebug.remote_mode =req xdebug.remote_port =9000 xdebug.idekey = "netbeans-xdebug" xdebug.remote_autostart =On
-Apache and MySQL work and green on the XAMPP control panel
#
So now, with all these changes, I launch Wizard again, but still tell me to install Xdebug! Also looking for phpInfo () output does not return any Xdebug files ......
Now I start Netbeans and set some breakpoints, start debugging (settings in netbeans, port: 9000, SessionID: netbeans-xdebug). Netbeans is trying to connect ..... but nothing happens!
Some information from phpInfo ():
Zend Extension 220100525 Zend Extension Build API220100525,TS,VC9
Any help would be appreciated
**
Ok wow !!! After 5 hours of work and after the end of this message, I just tried to start the debugger “for the last time” :) and it “started” to work ....... cruel world : D But at least now I can contribute , that this is a working configuration;)
**