How do you debug yii-applications?
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,
Posted 02 July 2009 - 05:11 AM
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..
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
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:
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.
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.
Posted 02 July 2009 - 12:38 PM
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)