I\'m trying to debug glassfish 4 application in IntelliJ IDEA12.1 and am getting the following:
D:\\tools\\glassfish4\\glassfish\\bin\\asadmin.bat start-doma
It is a tricky one. When you add an artifact in the deployment tab, you see a warning message in the bottom (If you not, just resize the window enough):
Debug settings are invalid or not suitable for local debugging
Then just click to the button fix.