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.
Specify base PHP file to run for a project
Moderator: kfury77
Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
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".
Re: Specify base PHP file to run for a project
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.
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
Gatis Avots