EclipseforPHPDevelopers 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.
Reply to discussion (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.
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.
Thanks for your reply. The company uses eclipse for php. When someone else sets a breakpoint in the environment (make a small dot in front of each line), it can respond to the breakpoint. my environment is not easy to use and depressing, the debugging program can only echo the variables.
Isn't it good to echo it in the browser? it's more convenient.