Eclipse can’t find source when remote debugging
I had a problem recently where Eclipse couldn't find my source files when remote debugging a particular application. It would stop and the breakpoint and show the class file with a "attach source" button, but pointing it to the source directory didn't do anything.
It turns out that the solution was to add the project to the remote debug configuration.
This is done by "Run -> Debug configurations..."
Choose the remote config from the tree on the left
Click on the "Source" tab
Click on the "Add..." button
Follow the wizard.
Hope this helps anyone with the same problem.
Mercurial changes how you work
I've recently started using Mercurial, which is a distributed version control system.
DVCSs initially struck me as a solution looking for a problem. SubVersion seemed good enough for our purposes at work, but we decided to try out Mercurial for one iteration to see what all the fuss was about.
Perhaps the most significant difference between SubVersion and Mercurial is that Mercurial uses a local repository. This subtle distinction significantly changes how you work because you can commit your changes without having to publish them. A 'commit' in Mercurial is like a savepoint in database-speak - it gives you a safe place to roll back to if things go awry. Once you're happy with your changes you can use the patch queue to fold all your commits into a single changeset and 'push' (i.e. publish) your changes to the central repository.
With Mercurial I commit early and commit often.