How do you debug yii-applications?
#1
Posted 07 April 2009 - 04:46 AM
Currently I am using Eclipse PDT and xdebug for my debugging purposes but I am asking myself if there is a better IDE/solution for debugging. Which tools do you guys use?
Thanks in advance,
Michael
#4
Posted 01 July 2009 - 02:12 PM
I'm trying with PDT and XDebug an I just could stop at the first line of index.php
How did you configure your PHP/PDT etc for debugging?
Thank you,
Paul
#6
Posted 02 July 2009 - 05:11 AM
http://robsnotebook....gger_pdt_xdebug
I've now switched to Netbeans, never liked the 'perspectives' in Eclipse and Netbeans 6.7 is as good as Eclipse for debugging.
There's one last odd problem when debugging, not all contents of variables are displayed but it's quite complex to strip down the problem to the root cause..
#7
Posted 02 July 2009 - 05:53 AM
I already tried that. I fact debugging on scripts works on PDT.
Just with Yii the debugger doesn't stop at breakpoints.
Paul
#8
Posted 02 July 2009 - 06:00 AM
Michael
#9
Posted 02 July 2009 - 08:25 AM
but when i insert break point in the file(any) in the application
and when i start the debugger in netbeans it donot stop at the specified point where i inserted the breakpoint
what should i do
please help..
#11
Posted 02 July 2009 - 08:42 AM
Please Check the following entries in your xdebug.ini or xdebug section of php.ini:
xdebug.remote_enable = 1
xdebug.remote_handler = dbgp
xdebug.remote_host = localhost
xdebug.remote_port = 9000
When ide and your web server are running on the same machine then xdebug.remote_host = localhost is correct. If your webserver runs on another machine the you need to replace 'localhost' with the ip or the dns-resolvable name of your machine. You also need to make sure that port 9000 is opend for incoming tcp connections on your machine that hosts the IDE.
Detailed information for netbeans may be found here:
http://www.netbeans....d-software.html
#13
Posted 02 July 2009 - 08:52 AM
#14
Posted 02 July 2009 - 09:10 AM
It should work
1. If you receive an error message saying something like the port 9000 is occupied (or so ...) then Follow what MiR suggested. This is surely due to a misconfiguration
1. if not go to Tools/options/php and activate Stop at First Line if it is not already activated. Or just make a breakpoint in index.php and see what happens.
#15
Posted 02 July 2009 - 09:19 AM
when i right click on the project and click debug
it asks
debug projects sources
server side PHP
server side PHP with client side java script in the selected browser
which one should i select
#17
Posted 02 July 2009 - 09:24 AM
If you want to simply debug a script written in php choose the first option, if you want to debug a complex yii aplication the second option is your friend.
Please reads the documentation from netbeans.org I proposed a few posts before, this should answer most, if not all of your questions.
#18
Posted 02 July 2009 - 10:52 AM
My server config for debug was wrong. Now it's working fine.
Paul
#19
Posted 02 July 2009 - 12:38 PM
Quote
What do you mean with data?
I just make the debuging with 6.5 and I see the "$model" objects of my site,even I did not see the values of each model (title etc)
#20
Posted 02 July 2009 - 12:45 PM

Help

This topic is locked













