| View previous topic :: View next topic |
| Author |
Message |
THE_AI
Joined: 20 Nov 2008 Posts: 44
|
Posted: Thu Jan 08, 2009 11:37 am Post subject: Xdebug doesn't stop on breakpoint |
|
|
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" |
|
|
| Back to top |
|
 |
Petr Pisl Posted via mailing list.
|
Posted: Thu Jan 08, 2009 3:22 pm Post subject: Xdebug doesn't stop on breakpoint |
|
|
What tipe of application are you debugging? Is there possibility to map
an URL on a file on the disk?
Thanks,
Petr
| Quote: | 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"
|
|
|
| Back to top |
|
 |
THE_AI
Joined: 20 Nov 2008 Posts: 44
|
Posted: Thu Jan 08, 2009 4:14 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
ernie242
Joined: 17 Jan 2009 Posts: 13
|
Posted: Sat Jan 17, 2009 12:53 pm Post subject: |
|
|
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";
}
?>
|
|
|
| Back to top |
|
 |
kolen
Joined: 08 Apr 2009 Posts: 2
|
Posted: Wed Apr 08, 2009 9:39 am Post subject: |
|
|
| Maybe you need to specify web document root of project (project properties -> Sources -> Web root). |
|
| Back to top |
|
 |
THE_AI
Joined: 20 Nov 2008 Posts: 44
|
Posted: Wed Apr 08, 2009 9:43 am Post subject: |
|
|
Hey kolen,
Thank you for the reply, but I have given up working with xdebug.
It is impossible for me to configure it in a way, that it doesn't crash my apache server.
I'm waiting for a new version, but as it seems - I have to wait a lot. |
|
| Back to top |
|
 |
sarah_bryce
Joined: 29 Sep 2009 Posts: 3
|
Posted: Tue Sep 29, 2009 9:41 am Post subject: |
|
|
I have downloaded both the facelets* and the richfaces* plugin for a NetBeans 6.5 daily build. They have both installed correctly and I can create a web project using both of these technologies.
When I open a jsp page I can code complete both the jsf, facelets, richfaces and a4j tags. However, when I open an xhtml page (to write a facelet page), I can only code complete the jsf and facelets tags not the richfaces and a4j tags?
Is there any way I can overcome this so I can code-complete all the tags in both jsp and xhtml(facelets) files?
Also the advising is great also sounds very good. Infect i am student of 640-460 exam code. This is awesome information which i was search from last half an hour. This described great and found useful to enhance my knowledge. As well as i am busy in my study and preparing of certification course of 640-721 exam which is going to take place next month. Also busy to complete my pending thesis 640-802 exam. I am also glad to being here and happy that there are many good places to visit. Thanks for sharing this awesome information. |
|
| Back to top |
|
 |
|