EclipseforPHPDevelopers cannot debug the controller code of PHP. how can this problem be solved?

Source: Internet
Author: User
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.

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.