Eclipse for PHP developers cannot debug PHP controller code, how to solve

Source: Internet
Author: User
Eclipse for PHP developers cannot debug PHP controller code
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.
------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.
------Solution--------------------
In the browser echo out is not very good, but also convenient.
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.