Specify base PHP file to run for a project

Let us know what you would like to see in the next version of this software

Moderator: kfury77

Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
  • Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
  • Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
  • Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Please note that we DO READ all suggestions, even if a reply is not posted. Thanks!
Post Reply
zuggsoft
Posts: 11
Joined: Sat Nov 08, 2008 7:26 am

Specify base PHP file to run for a project

Post by zuggsoft »

When using frameworks, the PHP file being edited is often just a small part of a project. You can't run one of these "Snippets", it can only be run via the main application's file. For example, with a CodeIgniter project, you need to run the index.php file and not one of the controller files, or view files, etc.

Most other PHP IDEs have this feature. This feature is preventing me from using RapidPHP to do any debugging of my projects. Seems like an easy addition to the Project properties.
Gatis
Blumentals Software Developer
Posts: 545
Joined: Sun Mar 05, 2006 12:30 am
Location: Latvia

Re: Specify base PHP file to run for a project

Post by Gatis »

Hi,

We were going through some feature requests yesterday.
Actually you can debug also projects were you need to run some other file first.
Simply add breakpoint to the file you need to debug (the "Snippet" file as you referred it to).
Then run your main file (index.php), for example. Once the execution will hit the breakpoint in your "snippet" file (can be some other file than index.php), execution process will be stopped and you will be able to debug your "snippet" file.

Let me know if you meant something else.
Kind regards,
Gatis Avots
Post Reply