5

I'm developing in NetBeans a CakePHP application and finally managed to get it connecting to XAMPP debugging sessions (PHP 5.3.1 w/ Xdebug v2.0.6-dev).

It perfectly works when launching, it does pause the application on the first line.

However any further breakpoint I set is completely ignored. It does not break nor pause; it just runs to completion.

xdebug.extended_info is set to 1 and I tried with a barefoot php project without any framework magic and there breakepoints worked as expected.

What the hack? I would like to be able to use breakpoints in (Cake)PHP.

8
  • 1
    i am curious to see if anybody comes back with an answer for this. Commented Oct 24, 2010 at 17:04
  • me2 :) This is a major issue to me, I'm unable to debug CakePHP apps. I have the feeling it has something to do with the way Cake is including code pieces. But I'm not sure. It doesn't seem a conf issue. Would be nice to have at least a "worksforme" feedback. Commented Oct 25, 2010 at 8:07
  • Do you have triple checked that the execution flow is going to your breakpoint ? Commented Oct 31, 2010 at 13:13
  • @Luc: I tried both in controller and view code. Breakpoints in views' PHP code are also valid, isn't it? Commented Oct 31, 2010 at 21:09
  • 1
    As per Google it's a common problem osdir.com/ml/CakePHP/2009-06/msg00879.html - but some suggested downgrading xdebug helped. Anyway you could still try to remove CakePHPs xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE); - though I'm not sured it gets activated. Otherwise try debugging with Eclipse to isolate the problem source. Commented Nov 2, 2010 at 5:33

1 Answer 1

6
+150

Try to set the webroot correct to the cake-webroot-dir in project-properties

Another thing, take a look here:

http://groups.google.ch/group/cake-php/browse_thread/thread/73bcf80a3d626c75

Sign up to request clarification or add additional context in comments.

1 Comment

WoW! Project / Properties / Sources / Web Root set to app/webroot solved the issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.