You will find the following line in the bin/run.conf file
# Sample JPDA settings for remote socket debugging
if you uncomment the JAVA_OPTS the java process will open a socket for remote debuging.
In Eclipse you can set this in the Run/Debug configurations.
Eclipse will connect the remote JVM for debugging.
Also you need to have the source code attached in Eclipse.
I was hoping to get information for making eclipse stand alone. I don't have access to the server that runs jboss so I can't mess with that. I need to run and debug within eclipse. I have downloaded jboss. to incorporate within eclipse.
I'm not sure whether it will be possible to run the servlet standalone as you need a container to provide the environment.
You might use frameworks like arquillian for that but I'm not sure how much work it will be.
I use often a running jboss and attach the debugger or you might use the the JBoss tools Eclipse plugins.
Are you looking for Preferences->Server->Runtime Environments->Add?
I guess I need moe of a quide on what to do. I have downloaded Jboss 5.0.1 GA and got it to work on my machine locally but am getting "HTTP in use errors." and "No main class errors" when I try to run it. I am not sure how to invoke with a url the servlet with in eclipse or whether I need tomcat running as well. I am not even sure if I have Jboss plugged into eclipse right or how to tie the project to it.
Any advice would be appreciated.
JBoss Tools is a set of plugins for Eclipse that make working with JBoss AS in Eclipse easy. And the documentation for JBoss Tools is pretty good - going through some of the Getting Started guides should get you on your way; they start from installing the tools through writing and running some basic apps. I recommend following at least one or two of the examples in the guides before attempting to work with your app.
Here is the URL for JBoss Tools: www.jboss.org/tools
This page lists JBoss Tools and JBoss AS compatibility - you might have to read an older set of guides to get AS 5.1.0 instructions, the most recent guides probably are more focused on AS 7.