Q:

Debug Jboss 7.x with intellij idea

I am trying to debug the application on my macbook pro ( os Mountain Lion ). But when I click on debug it is alerting that: unable to connect localhost 4010. I set the port to 4010 on jboss. Here is the output while app starting.
Listening for transport dt_socket at address: 4010

On Jidea; settings for debug is "remote server" 
Remote Connection Settings; 
host : localhost
port : 4010

A:

Most likely you are using debugger port in place for HTTP port:

A:

In case if you just want to connect to your local application server:

Open "Run/Debug configurations" window.
Add new configuration - Remote
Set up Port to your Jboss socket port

