I have this extension installed:
Language Support for Java(TM) by Red Hat
I had to uninstall it and install it back again, and the debug and compile tab worked again.