FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Xdebug doesn't stop on breakpoint

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
Ayer
Posted via mailing list.





PostPosted: Fri Mar 13, 2009 10:08 pm    Post subject: Xdebug doesn't stop on breakpoint Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB