eclipse-pdt

How do you add a PHP framework to code completion/assist in Eclipse PDT and can the framework be added as default for all projects?

旧时模样 提交于 2019-12-18 08:24:11
问题 How do you add a PHP framework to code assist/completion in Eclipse PDT? And is it possible to have that framework added as default for all projects? 回答1: Generally speaking in Eclipse, you can add a library or framework to code assist/completion by: Going into Project > Properties Under PHP Include Path, pick the "Libaries" tab. Add an "external folder" with the path to where your framework is located. This can also be done on project creation. I'm not sure of a way to have it automatically

Prevent xdebug to break at first line of index file

流过昼夜 提交于 2019-12-18 05:37:10
问题 I have xdebug setup with Eclipse PDT. Every time I start a debug session, Eclipse breaks at the first line of my root index.php file. Is it possible to prevent this behavior? 回答1: Ok I found what the problem was. In Eclipse, I just needed to go in "Windows -> Preferences -> PHP -> Debug" and uncheck "Break at first line". To make it work, I also had to go in "Run > Debug Configurations > PHP Web Application" and unselect "Break at first line" in all the configurations. You might have to

Slowness in Eclipse Juno (4.2)

会有一股神秘感。 提交于 2019-12-18 03:43:21
问题 I've had some issues with slowness switching tabs in Eclipse 4.2 Juno and was hoping someone might have some answers. The original delay was about 10 seconds which dropped to 2-4 once I specified the java vm in the eclipse.ini file, but that's still slower than I think it should be. I've uninstalled all the addons that I thought might be offending and listed the active ones below and I believe the system to be more than adequate, but listed the specs anyway. Thanks for any help you could give

xdebug breakpoints work but step over does not

ε祈祈猫儿з 提交于 2019-12-17 16:49:13
问题 I have installed Xampp on Windows (Well actually both xampp and wamp but both have the same problem), and enabled xdebug. I have installed the latest eclipse for php with pdt included. The breakpoints are working correctly however if I press f6 or f5 the current line does not get updated, the variables change as if I had stepped to the following line but the highlighted line remains the same. Any ideas? I attach some screenshots to make it easier to understand: Breakpoint works: I press f6,

Setting up path mapping in PHP and Eclipse

本秂侑毒 提交于 2019-12-13 13:28:02
问题 I have just setup my website locally so I can test my pages more easily. Eclipse has been configured to use an XAMPP server locally. The problem is that I want to map my project to a certain place in my website. ie. In my Eclipse PHP project I have a folder called com I want this to map to /com in the webstie. I tried to do this in the mapping section of the Eclipse server setup but it didn't work. When I type http://localhost/com/ It should go to my project folder, however, when I type other

Folders and files don't appear in PHP Explorer in Eclipse IDE

烂漫一生 提交于 2019-12-13 06:14:54
问题 I use PHP Development Tools in Eclipse IDE. I did refactoring and move some scripts to the new folders of PHP project. Now no refactored folders or files are displayed in PHP Explorer View although they are present in the file system. The problem occurs regularly after moving or renaming files. I sent bug report to Eclipse technical support but so far they have not solved it. There is radical solution - to re-create the workspace, but then it's too expensive restore all my settings, reimport

Eclipse PDT, how do I get the files on the server?

我只是一个虾纸丫 提交于 2019-12-13 02:23:32
问题 I am trying to learn how to use Eclipse Helios PDT, but I don't understand how one gets the files from their workspace to the server. The PDT documentation is painfully sparse. I have my workspace in /home/bob/workspace and my local dev webroot is /home/bob/public_html. If I set up a run configuration for my php project I see where I can set up the path to the server, etc, but I do not see any obvious way to auto copy the files to my webroot to actuallly run the project. If I click on run, I

slow typing in between <?php tags with eclipse helios with pdt

◇◆丶佛笑我妖孽 提交于 2019-12-12 17:38:31
问题 I get slow typing in between <?php tags with eclipse helios with pdt windows 7 / dual core / 3gb ram using 3.6.1 M20100909-0800 pdt 2.2.1.v20101001-2300 doesn't happen outside of php tags. 回答1: Turning off white-space characters worked for me. Pretty annoying.. I couldn't recreate it on-demand and it never seemed to start at any particular point. I work on large projects with large include paths. Restarting Eclipse never had any effect. I had to restart my OS to resolve the issue. Finally

Eclipse PDT + xdebug: step through code broken

試著忘記壹切 提交于 2019-12-12 14:27:26
问题 I'm using PHP 5.6.2 with xdebug 2.2.5 and Eclipse 4.4.1 with PDT 3.3.1. I'm trying to setup the debugger (xdebug) on a local server (localhost) and something appears to be broken. When I start a debugging session eclipse switches to the debug perspective and stops at first line (as checked in config). The problem is that although the debugger (in debug window) seems to follow the execution as I step through code (it shows code lines as it advances), the window below that opens the source file

disable eclipse validators

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 23:39:04
问题 I do have a project which includes ZF library. In the problems tab I get all the warnings from the Zend library. My problem is that I want to hide all that. I've tried adding Exclude Group settings and rules for HTML for PHP validator and even I've suspended all validators for global settings and as a customized project settings and nothing works. The strange thing is that most common type of problem is DLTK and I cannot find this particular validator. 回答1: Not all things in Eclipse that