When I try to debug project then homepage opens in the browser and break point is also hit
whereas, when i try to debug a file using netbeans and xdebugger then Access denied page opens in the browser and waiting for connection shows in the bottom of Netbeans.
But i checked the project properties settings and its the same that you have mentioned. In fact, when i say debug project then in that case I am not facing error, It works perfect. Its only when i ask to debug the file then this error of access denied comes up.
i don’t know why you may debug a (view) file alone! or any file in Yii rather than index.php bootstrap ! but to solve this for testing and development environment you can just remove/rename .htaccess file if you want to debug any particular file inside protected folder.
It seems my approach is wrong. I will just explain what i am trying to do. Please guide me the right way to achieve it.
I want to debug a function which is in say restaurantInfo model, I have put a break point on a function which is responsible for search. How can I route the Xdebugger to hit that break point?
thanks…it works when i add the argument in run configuration under project properties. Although. i was not able to use the navigation method.
And i think, now i understand the point of both of you and Jacmoe, that there is no point debugging just the model. As we will have to understand the complete flow of program and values of variables that are being transferred which we will not be able to do if we debug the model directly? am i right?
So is there any place where we need to define the address, maybe at bootstrap file or some other? I am little confused but I hope you understand my point.