I am a beginner of cakephp. I am using netbeans IDE. Is there any netbeans plugin for debugging cakephp script ?
-
See stackoverflow.com/questions/693074/… (Windows) or stackoverflow.com/questions/6835454/using-netbeans-to-debug-php (Linux)John Carter– John Carter2012-08-23 23:55:49 +00:00Commented Aug 23, 2012 at 23:55
-
1Debugging CakePHP has nothing to do with your IDE or text editor.jeremyharris– jeremyharris2012-08-24 02:04:24 +00:00Commented Aug 24, 2012 at 2:04
Add a comment
|
2 Answers
I would just use XDebug. Here is a link on how to set up XDebug with NetBeans http://wiki.netbeans.org/HowToConfigureXDebug
Comments
You can always put
debug($variable);
die; //if you want to stop the program
and you will get the value of the variable. It's like printf(); for C if you are not using debugger. :D
3 Comments
John Carter
gark, yes you can, and that's sometimes the easiest thing, but much nicer to use the proper debugger: xdebug.
Davor Lozic
I agree that is nicer but, most of my development time, I just need to print a variable. Nothing else... So the "printf", ups, "debug" is a great solution. ^^
John Carter
Agreed, but in Stackoverflow answers you should always at least mention the right way as well as the quick way ;)