EclipseforPHPDevelopers cannot Debug PHP controller code. my eclipse version is as follows: & nbsp; Eclipse & nbsp; for & nbsp; PHP & nbsp; DevelopersVersion: & nbsp; Helios & nbsp; service & nbsp; Release & nbsp; 2 Build & nbsp; Eclipse for PHP Developers cannot Debug PHP controller code
My eclipse version is as follows:
Eclipse for PHP Developers
Version: Helios Service Release 2
Build id: 20110301-1815
.
Able to debug the code under the view directory, but cannot debug the code under the controller directory.
The call relationship between view and controller is as follows: http: // localhost: 8080/fastphp/views/sale_ba_target/set_ba_sale_target.php? CTL = SaleBATargetController & ACT = setBaSaleTarget & firstId = 1 & nowId = 142.
When the interrupt point in the controller code does not respond, the breakpoint in the view will be interrupted.
Have you encountered this problem? You can solve this problem.
------ Solution --------------------
1. is php a big development tool such as Mao's eclipse? If editplus is used, var_dump (); die (); is used for debugging.
2. if there is a Controller, View should be the MVC structure Code. First, let's take a look at how the access path in this format is defined. (For example, TP: There are several routing formats, a common index. php? M = Index & a = index. m indicates the action method in the controller and a indicates the action method in the controller. if Doo: no route is configured, the index. php? Controller = Index & action = index, which is obviously the Index method in the index controller) these are based on your framework description.
------ Solution --------------------
Isn't it good to echo it in the browser? it's more convenient.