This is for Xampp under WindowsXP:
I had the same problem. While debugging, Xdebug didn't stop on any breakpoints. That usually has nothing to do with NetBeans, as in other IDE's there was the same problem. After checking php -v I got a warning:
Code:
Php Warning: Module 'xdebug' already loaded in Unknown on line 0
If somebody has similar problem, the solution is to disable php_xdebug.dll in php.ini file (in xampp/apache/bin folder). So it looks like that:
Code:
[...]
;extension=php_win32service.dll
;extension=php_win32std.dll
;extension=php_xdebug.dll <- make sure it's commented like that
;extension=php_xmlreader.dll
extension=php_xmlrpc.dll
;extension=php_xmlwriter.dll
extension=php_xsl.dll
[...]
Restart Apache.
I don't know why but since that it works like a charm, as it should be, in NetBeans in Notepad++ and ect.
The rest of my config goes like that:
Code:
[Zend]
;zend_extension_ts = "D:\xampp\php\zendOptimizer\lib\ZendExtensionManager.dll"
;zend_extension_manager.optimizer_ts = "D:\xampp\php\zendOptimizer\lib\Optimizer"
;zend_optimizer.enable_loader = 0
;zend_optimizer.optimization_level=15
;zend_optimizer.license_path =
; Local Variables:
; tab-width: 4
; End:
[XDebug]
;; Only Zend OR (!) XDebug - xest
zend_extension_ts="D:\xampp\php\ext\php_xdebug.dll"
xdebug.remote_port=9000
xdebug.profiler_enable=1
xdebug.idekey=netbeans-xdebug
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1
xdebug.remote_mode=req
You can also always use xdebug_break(); in php code for example:
Code:
<?php
for ( $i=1, $j=0; $i<10; $i++) { xdebug_break();
echo "<br>Line $i";
}
?>
---------------------------------------------------------------------
To unsubscribe, e-mail:
[hidden email]
For additional commands, e-mail:
[hidden email]