XDebug and Eclipse PDT on Windows - From Start to Finish
May 20th, 2008 by Aaron
XDebug and Eclipse PDT on Windows - From Start to Finish
With our recent upgrade to php at “the triangle,” I felt it was time to start working on using a debugging and code profiling tool. When I say felt like it was time… I meant our PHP version finally supported it. *sigh*. Anyway, from start to finish, this is what I did in order to get Xdebug to integrate into my current eclipse PDT - as well as investigate the other features of xdebug. I tried to detail all of the mistakes I made as well as what I figured out. Let’s go:
Continue reading XDebug and Eclipse PDT on Windows - From Start to Finish
Eclipse Testing with TPTP - help me?
December 10th, 2007 by Aaron
I recently came across this tutorial here about Testing with TPTP- and I’m confused. Whats the benefit of this type of testing (um… creating JAVA code for a JUnit test… right?) compared to running some PHPUnit, Selenium and AB (from apache, or something…)? What am I missing - does anyone have any other good hands-on tutorials?
Use MySQL Gui tools to securely connect to remote database
October 27th, 2007 by Aaron
This particular example is going to be based on a connection from Windows XP using Putty, MySQL GUI tools and Dreamhost.
Quick summary of issue: I want to use MySQL Query Browser to access my database on my dreamhost account. The database allows connections from the webserver only - nothing external. I have an SSH account on the webserver.
Quick answer: This requires us to tunnel from our machine to the webserver and connect through this tunnel to the database server.
Lets take a look on how we can accomplish this:
Continue reading Use MySQL Gui tools to securely connect to remote database
Tools of the trade
August 31st, 2007 by Aaron
I just thought I’d drop some useful links and tools your way for those beginning and non-tool-cist peoples:
http://getfirebug.com/
used for js/css/dom debugging - additionally, even Yahoo is building upon this. I’ve used this a lot for AJAX request debugging as well.
http://zend.com/pdt
Zend eclipse project - get the full package - this is a ton of PHP tools from Zend (the PHP company) built on top of Eclipse (for those Java tool lovers out there)
Aptana
useful for css/javascript editing in eclipse - or as a standalone
Mysql Gui Tools
a nice gui browser for mysql - I know I know - us diehards - we shouldn’t need this - but it is still nice (you can also get plugins for eclipse to do the same thing with jdbc)
Pietty + Putty
Pietty - a putty plugin - allows for true transparency of putty windows - amazingly cool - at first its in some oriental language - and when you first open it up - you can’t read the screen when you first ssh somewhere. Never fear: just goto the encoding menu option and choose utf-8 - otherwise works like a dream. SSH to your heart’s content.
Komodo
If you don’t like Eclipse or the long time it takes to load, you can use Komodo. Plus, version 4 brings some lovely things to the table. Thats right, Lovely (and thats not cuz they gave me a shirt either…)
PHPDoc
Phpdoc for windows - has a nice gui for using phpdoc - what we use for documentation because its easy to customize and launch. (I have been using an eclipse tool though lately that I wrote….)
Thats about it - if you know any other cool tools, post them in the comments!
Master the ‘Run As’ option in Eclipse PDT with PHP
July 21st, 2007 by Aaron
Most of my development in Eclipse PDT with the results tested outside of it - using firefox. PDT has a few options in the Run… menu:
- PHP Script
- PHP Webpage
- Web Browser
So, lets take some time to look into how each one of these works, what are their configurations and what could be the benefit of using one above the other.
Continue reading Master the ‘Run As’ option in Eclipse PDT with PHP
Live Combined Error Reporting for Apache and PHP during Development
July 20th, 2007 by Aaron
So many times during development, I’ve missed little PHP errors because they were 1) on a processing page that was redirected or 2) output inside of a html tag - and rendered invisible. From time to time, I have to go back to my file system and check the php error log to see what happened. The first step to solving this was implimenting a custom error handler - which we did at (”the triangle”). But I’m torn on this: should the error handler script function the exact same during development as it does in production, or should we write two different error handlers. To keep the code as simple as possible and allow for scenario regeneration, I opted to have the error handler work the exact same way in development. Some might disagree, but thats not the point here. The issue was that I needed to watch the error log closer (I’m notoriously bad at not checking errors - see my previous post about error reporting…).
Another thing I knew would be nice to see would be the apache error log. As I’m not combining my error logs with php, I don’t often check the apache one. However, local mistakes can cause errors on the production server too.
Luckily, I was able to find a utility that made life easier - and of course - integrates into eclipse. Lets configure:
Continue reading Live Combined Error Reporting for Apache and PHP during Development
Two New useful external tools for Eclipse
July 19th, 2007 by Aaron
In my posting about Integrating PHPDocumentor into Eclipse, I touched on External Tools a bit. The combination of external batch files, the external tools extra options and the console has made my life easier. I’m using two new additional batch files that I’ve written myself and integrated as external tools. These include automated SVN release update and resource refresh and Apache application control (for those who can’t run apache as a service on w32):
Continue reading Two New useful external tools for Eclipse
Eclipse Integration with Tortoise SVN
July 14th, 2007 by Aaron
I generally don’t like to be tied to a specific IDE when developing. Additionally, I like to have my choice in using tools to manage my source control (tortoisesvn, svn command line, etc). I just think this is the open-source way - it seems to be just a more free-spirited way of developing and managing projects. With this in mind, I’ve been looking for ways to integrate my SVN into my current IDE (Eclipse PDT) but not limit myself from accessing my SVN repositories from the file system. I’ve found a great plugin to help with this - so lets go over the specifics:
Continue reading Eclipse Integration with Tortoise SVN
Show the right files in PHP Explorer
July 11th, 2007 by Aaron
After I installed Eclipse PDT, I had two project navigators. I closed the native one and kept open the PHP Explorer. PHP Explorer showed my php, css, js, etc, files. It also puts a plus sign to the left of the filenames. Using this view, we can expand the file to see the classes and functions inside of the file without opening it.
The only issue was that, by default, I couldn’t see my .htaccess and .htpasswd files. On the bright side, using SVN, I couldn’t see my .svn folders - which is exactly what I wanted. Put, this put the issue into a different light - there must be some sort of filter that is restricting files that begin with a dot.
At the top of the PHP Explorer, there are a few toolbar buttons. Clicking the down arrow brings up a context menu. I choose the filters… menu item. By default, ‘name filter patterns’ was not checked. .* files and server projects were selected in the second box. This makes sense why I was not seeing my .htaccess file.
First, I unchecked my option .* files. This fixed the issue - I was able to see the .htaccess files - but I also saw my .svn folders as well as additional meta files.
I checked the box saying “name filter patterns” and put in the following string:
.cache, .settings, .svn, .project, .projectOptions
This seemed to do it for me.
Spell Checking in Eclipse PDT
July 9th, 2007 by Aaron
Although I’d like to pretend that my side jobs always are pure programming, but alas, not the case. There are times when the users send word docs to me and I have to convert them to html. Now, even these word docs might have spelling mistakes - but thats just not ‘acceptable’ to them - I should correct those issues too! Whats up with that? But anyway, I now have a good plugin to do spellchecking in eclipse - that won’t break on code (well not sorta…). This supports spell checking as you type, language specific options, and more. At any rate, lets check out eclipse’s built in spelling feature, and then see why this plugin I found is better: Continue reading Spell Checking in Eclipse PDT
