Xdebug doesn't stop on breakpoint

5 messages Options
Embed this post
Permalink
THE_AI

Xdebug doesn't stop on breakpoint

Reply Threaded More More options
Print post
Permalink
Ok, again the lovely xdebug :)



Xdebug is working and it is stopping on the first line of the script(if this option is turned on), but it always go through the breakpoint without stopping on them.



Any ideas?

Here is my configuration:


Code:
[XDebug]

;; Only Zend OR (!) XDebug

zend_extension_ts="D:\xampp\php\ext\php_xdebug.dll"

xdebug.remote_enable=true

;xdebug.remote_host=127.0.0.1

xdebug.remote_port=9000

xdebug.remote_handler=dbgp

xdebug.profiler_enable=1

;xdebug.profiler_output_dir="D:\xampp\tmp"







---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Petr Pisl

Re: Xdebug doesn't stop on breakpoint

Reply Threaded More More options
Print post
Permalink
What tipe of application are you debugging? Is there possibility to map
an URL on a file on the disk?

Thanks,
Petr

> Ok, again the lovely xdebug :)
>
>
>
> Xdebug is working and it is stopping on the first line of the script(if this option is turned on), but it always go through the breakpoint without stopping on them.
>
>
>
> Any ideas?
>
> Here is my configuration:
>
>
> Code:
> [XDebug]
>
> ;; Only Zend OR (!) XDebug
>
> zend_extension_ts="D:\xampp\php\ext\php_xdebug.dll"
>
> xdebug.remote_enable=true
>
> ;xdebug.remote_host=127.0.0.1
>
> xdebug.remote_port=9000
>
> xdebug.remote_handler=dbgp
>
> xdebug.profiler_enable=1
>
> ;xdebug.profiler_output_dir="D:\xampp\tmp"
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

THE_AI

Xdebug doesn't stop on breakpoint

Reply Threaded More More options
Print post
Permalink
In reply to this post by THE_AI
Hm, maping an url on the disk??? (you've got me here - I have no idea what you are talking about :))



I'm developing extension for Joomla.

I was using netbeans for the same purpose as always, but now on vista 64bit.



And for some reason the breakpoints are not working.





---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

ernie242

Xdebug doesn't stop on breakpoint

Reply Threaded More More options
Print post
Permalink
In reply to this post by THE_AI
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]

Ayer

Re: Xdebug doesn't stop on breakpoint

Reply Threaded More More options
Print post
Permalink
erniw242:

Thanks a lot man....You solved it for me.
Keep posting!  :)

ernie242 wrote:
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: users-unsubscribe@php.netbeans.org
For additional commands, e-mail: users-help@php.netbeans.org