Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » How to get Eclipse to tell me if PHP variable is used or not
How to get Eclipse to tell me if PHP variable is used or not [message #61491] Thu, 22 November 2007 14:32 Go to next message
Eclipse UserFriend
Originally posted by: edward.tanguay.meteo-graphics.de

I used Eclipse in a PHP project once where Eclipse would underline
variables that were:

- defined but not used
- used by not defined

This was a wonderful help especially in PHP where a typo such as this:

$numberOfReports = 10;
..
..
..
echo $NumberOfReports;

will just show blank and not give you an error. I believe it even created
a "warning" in the Errors View which was nice.

Does anyone know how to configure Eclipse to have this "variable scope
integrity" feature which is so helpful in catching little typos in
variables like this?

Thanks,

Edward Tanguay
http://www.tanguay.info/web
Re: How to get Eclipse to tell me if PHP variable is used or not [message #61514 is a reply to message #61491] Thu, 22 November 2007 23:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tatsudoshi.criion.net

Answered in newsgroup newcommer

No need to post the same question in more places. It will not get them
answered faster or better.

/tstsudoshi
Re: How to get Eclipse to tell me if PHP variable is used or not [message #61545 is a reply to message #61514] Fri, 23 November 2007 08:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: edward.tanguay.meteo-graphics.de

Sorry for posting twice, but after posting in the newcomers list I was
told to post PHP/PDT issues here so I did. Know I know. :-)

I vaguely recall that this variable scope feature was in a project called
PHPeclipse, I think. It would be nice if this feature was in the PDT
Eclipse as well. Or does anyone know of any "validator tools" etc. with
which I can regularly check my code for unused and undefined variables?

Thanks,

--
Edward Tanguay
http://www.tanguay.info/web
Re: How to get Eclipse to tell me if PHP variable is used or not [message #61559 is a reply to message #61545] Fri, 23 November 2007 10:50 Go to previous message
Eclipse UserFriend
Originally posted by: tatsudoshi.criion.net

I think that was for the debug question only.
I don't know :-) don't think it matters now
Previous Topic:How to debug a "PHP web page" instead of a "PHP script"
Next Topic:Project root on webserver
Goto Forum:
  


Current Time: Wed Apr 24 14:33:00 GMT 2024

Powered by FUDForum. Page generated in 0.03253 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top