| View previous topic :: View next topic |
| Author |
Message |
Ayer Posted via mailing list.
|
Posted: Fri Mar 13, 2009 10:08 pm Post subject: Xdebug doesn't stop on breakpoint |
|
|
erniw242:
Thanks a lot man....You solved it for me.
Keep posting! :)
ernie242 wrote:
| Quote: |
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";
}
?>
|
--
View this message in context: http://n2.nabble.com/Xdebug-doesn%27t-stop-on-breakpoint-tp2127765p2476048.html
Sent from the NetBeans for PHP - Users mailing list archive at Nabble.com. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|