My version of Eclipse is as follows:
Eclipse for PHP Developers
Version:helios Service Release 2
Build id:20110301-1815
。
Ability to debug code in the view directory, but cannot debug 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 a breakpoint is interrupted in the controller's code, the break point in the view is interrupted.
Are you experiencing this problem? Let's fix it.
Reply to discussion (solution)
1, PHP for hair with eclipse such a large development tool? With EditPlus good, usually debug is add var_dump ();d IE (), set breakpoints debugging.
2, the Controller,view should be the MVC structure code, first look at how this format access path is defined. (such as TP: There are several routing formats, commonly used in a index.php?m=index&a=index, where m represents the controller, a represents the action method inside the controller, and then doo: if the route is not configured, Index.php?controller=index&action=index, this is obviously to access the index controller inside the index method) these are based on the instructions of your framework.
1, PHP for hair with eclipse such a large development tool? With EditPlus good, usually debug is add var_dump ();d IE (), set breakpoints debugging.
2, the Controller,view should be the MVC structure code, first look at how this format access path is defined. (such as TP: There are several routing formats, commonly used in a index.php?m=index&a=index, where m represents the controller, a represents the action method inside the controller, and then doo: if the route is not configured, Index.php?controller=index&action=index, this is obviously to access the index controller inside the index method) these are based on the instructions of your framework.
Thank you for the reply, the company used the eclipse for PHP, other people's environment set breakpoints (in front of each line to make a small point) can respond to breakpoints, my environment is not good, depressed ah, make my debug program can only put the variable echo out.
In the browser echo out is not very good, but also convenient.