when phpmd runs, it first searches for a default php executable which must exist, and this is not set in "php tools" but in "php":

window > preferences > php > php executables > (choose one) > [set default]

but if you had not done this, you would have gotten an error.

at this point phpmd runs, and places its output in the phpmd view (not in the console view), which is usually displayed at the bottom. if it does not appear at all, it might have been closed or ignored. so:

window > show view > php tools (others?) > phpmd

another thing that may happen is that phpmd detects nothing (the view appears but it is empty). in that case you can check the console view to see what happened. otherwise, you could try and modify the phpmd.php script which is run by pti so that it logs what it's doing (you might for example wrap the main routine in a try/catch), either to stdout or by opening a temporary file somewhere on your system.


old question but since there still seems to be interest in it... i just installed the pti plugin and there was no mention of phpmd so i wonder where you get the "mess detection" menu item from?

for me actually nothing of pti works with eclipse kepler sr2. whatever i try just nothing happens.

i'd recommend you makegood for running phpunit tests in eclipse and setting up jenkins (including phpmd) for your project, it takes a bit time to set up but once it is running it is just great: template for jenkins jobs for php projects

Related Query

More Query from same tag