How to tell Eclipse what file to run in a PHP project?.PHP - Delete local file after moving to AWS S3 - Text File Busy Error.Being able to configure Pear to stop messing with Xdebug would be a lot better than uninstalling Pear. I wish I knew why having Pear installed changes that fileuri attribute, though. So I'm thinking that you should expect the entrypoint file for your web requests to appear in that XML element. With php53-pear uninstalled, the fileuri setting in that XML data is now the index.php file for the Drupal site I've been trying to debug. And lo and behold, that fixed it! I no longer get the "No appropriate file" error message, and I can debug like normal. However, now that I knew that Pear was involved in the problem, I tried simply uninstalling Pear ( sudo port uninstall php53-pear), since I wasn't actually using it any more. But I have that file in my filesystem, so I have no idea why I was still getting this vague error message about a file being missing. The /opt/local/var/db/php5/pear/pear-ini.php was again being mentioned. But I was able to find it once I set xdebug.remote_log=/tmp/xdebug.log in php.ini, and then tailed the /tmp/xdebug.log file as I attempted to start a remote debugging session. Using dtruss didn't help: I didn't see that XML element anywhere. I had this same problem, and while freedev's answer pointed me in the right direction, it didn't actually solve it. To configure PHP, edit /opt/local/etc/php5/php.ini.Īuto_prepend_file = '/opt/local/var/db/php5/pear/pear-ini.php' Any changes you make will be lost if you upgrade or uninstall php5-pear. Do not edit this file it is automatically generated by MacPorts. In my case pear-ini.php is added automatically by pear.ini $ cat pear.ini May be a file that is loaded from the PHP engine for some strange reason. Okay, my Eclipse was unable to find the file, but it also meant that it is trying to find a file that is out from its workspace. If you bump into this strange error: " No appropriate file located or no file selected.", well it means exactly what's written. It is even asking me if I would like to switch into Debug perspective. It works, Eclipse PDT now find the file it was looking for and the debugger finally start correctly. So I create a new project inside my Eclipse workspace and here I have copied the file /opt/local/var/db/php5/pear/pear-ini.php The file pear-ini.php does not exist in my eclipse projects. Looking at fileuri I discovered Xdebug is trying to start the debugging session with /opt/local/var/db/php5/pear/pear-ini.php. I tried to debug Eclipse in order to understand what's happening in my Mac OS X.įirst find the current Eclipse running process: $ ps -ef | grep eclipseĥ01 15160 373 0 4:21PM ? 2:57.19 /Users/myuser/apps/eclipse/Eclipse.app/Contents/MacOS/eclipse -psn_0_651423 Installing Composer globally for laravel usage?. Conditionally building an Eloquent query.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |