简体   繁体   中英

How to tell Eclipse what file to run in a PHP project?

I am on Eclipse Luna (4.4.0) on Ubuntu.

I have some files in my PHP project. For example, I have 2 files in my project: index.php and solve.php , I am editing solve.php and I press F11. Eclipse will run solve.php but I want it to run index.php anyway.

What should I do to get this behaviour?

I think that you just need to create a Debug Configuration for the project with your main php file as the main file of the project . Take a look at this step by step tutorial to configure it the right way .

调试conf

Take look at the Debugging using XDebug documentation for more information .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM