Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Breakpoints are completely ignored when debugging CakePHP application

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.

like image 495
sibidiba Avatar asked Oct 20 '10 18:10

sibidiba


People also ask

How to debug in CakePHP?

Basic DebuggingThe debug() function allows you to show the contents of a variable in a number of different ways. First, if you'd like data to be shown in an HTML-friendly way, set the second parameter to true . The function also prints out the line and file it is originating from by default.

Why is Visual Studio not stopping at the breakpoints?

This problem occurs because ASP.NET debugging isn't enabled on the application.

Why the breakpoint is not hitting in asp net?

For this, simply open your "Solution Explorer", select your "Solution" and right click on it, Select "Clean Solution", once solution is cleaned, which will delete all the compiled and temporary files associated with a solution, select "Build" solution and then check if issue exists.

What is listen for xdebug?

Listen for Xdebug This setting will simply start listening on the specified port (by default 9003) for Xdebug. If you configured Xdebug like recommended above, every time you make a request with a browser to your webserver or launch a CLI script Xdebug will connect and you can stop on breakpoints, exceptions etc.


1 Answers

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

like image 166
Mohammad Mazaz Avatar answered Sep 30 '22 00:09

Mohammad Mazaz