The accepted answer did not work for me debugging Java on Eclipse Juno SR1, but this did:
- Window | Preferences… menu item
- Choose Run/Debug on the left, about half-way down.
- Choose Perspectives under that
- Select Never at Open the associated perspective when launching and Open the associated perspective when an application suspends