Some time ago I spent a good amount of time learning xdebug in details and to make a good configuration file for it.
Of course, as it always happens, I FORGOT about that … good job Dam! So this time I’m going to write down something in the hope that this will last longer in my mind… (yeah yeah I don’t believe myself too … )
In these days I was debugging Contact Engine and running tests. Tests are all made in this way:
a test makes a REST call to the server (just another php file of the same project), then the REST server does its job and the response goes back to the test code.
The issue was about break-points: setting a break-point in the REST server code didn’t stop the execution and so whatever happened in the REST “area” was unknown (shadow area) and so I just had to deal with the result provided by REST. At the beginning I thought it was correct because it’s another HTTP request to another page …. but I remembered that in another occasion (several months ago) it was working smoothly.
So I went in “stubborn mode” (i.e. rediscovering the wheel … ) and finally I found a way to make it working and to be capable to put break-points even in the shadow area. Using this setting:
(more…)