How to debug concrete5

Permalink
Hi !

I am writing a new block and will debug some bugs.

I have tried Zend Studio with Zend Server and also Netbeans and XDebug, but I am not happy with the IDEs.

Everytime I start a debug session on the index.php after a dispatch cycle the index.php ends and no debug is possible.

Also the dashboard ist not working if I use a debugger.

What solutions use other developers?

At my opinion Zend Studio and server is good for plain php function to debug, but not to debug a whole web application.

What's your expirence?

No feedback? Does nobody debug his code?

wguggen
 
Ricalsin replied on at Permalink Reply
Ricalsin
wguggen,

I've got the same question and was pursuing the same track with zend studio and server. I'm having trouble with the zend server functioning properly on my Vista x86 machine and came back here and saw your post. Not good. Now I'm really wondering - do people debug their code or is it only var_dumps, print_r and tracing the logic visually. I was really expecting zend to have a nice IDE. Do you think your assessment of the zend studio is still accurate and not due to misunderstanding on your part?
Ricalsin replied on at Permalink Reply
Ricalsin
wguggen,

I've got the same question and was pursuing the same track with zend studio and server. I'm having trouble with the zend server functioning properly on my Vista x86 machine and came back here and saw your post. Not good. Now I'm really wondering - do people debug their code or is it only var_dumps, print_r and tracing the logic visually. I was really expecting zend to have a nice IDE. Do you think your assessment of the zend studio is still accurate and not due to misunderstanding on your part?
jordanlev replied on at Permalink Reply
jordanlev
I've only had luck debugging PHP with very lightweight solutions -- so not IDE's like NetBeans or Komodo or Zend.

On a Mac, I use MacGDBp:
http://technosophos.com/content/debugging-your-php-code-xdebug-mamp...

On Windows, I use Notepad++:
http://amiworks.co.in/talk/debugging-php-using-xdebug-and-notepad-p...
(I usually have trouble with just one tutorial and have to synthesize the info from multiple ones to work on my machine -- so you may need to google for more than this one)

For both solutions, you need to install XDebug, which sometimes goes smoothly and sometimes not. And also I always put in xdebug_break() statements in my code where I want it to break -- I don't usually have luck setting the breakpoints in the debugger themselves. But I definitely use these debuggers successfully with Concrete5 -- it comes in extremely handy when trying to figure out what the core system is doing.

HTH!

-Jordan