jboss7.x - Remote debug JBoss AS 7.1 from Eclipse Indigo -


i read guides on subject , made following steps.

http://oreilly.com/pub/a/java/archive/eclipse-jboss-remote-debug.html?page=8 https://community.jboss.org/thread/177687 jboss debugging in eclipse

the guides have distinctions on whole similar.

the steps made.

  1. i compiled , deployed web project , deployed on jboss 7.1 clicking run on server -> jboss 7.1 in eclipse.
  2. i stopped jboss in eclipse.
  3. i uncommented line

    java_opts="$java_opts -xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"

in $jboss_home/bin/standalone.conf file

  1. i executed $jboss_home/bin/standalone.sh
  2. i updated page localhost:8080/myproject/ in browser , worked
  3. i executed debug -> debug configurations in eclipse, created new configuration localhost host, 8787 port, , myproject project name.
  4. i pressed debug button in eclipse.

when reach breakpoint added, nothing happens.

i expected eclipse stop @ breakpoint in simple java application project. did wrong?

eclipse version: indigo.

java.

java version "1.6.0_43" java(tm) se runtime environment (build 1.6.0_43-b01) java hotspot(tm) 64-bit server vm (build 20.14-b01, mixed mode) 

edit #1.

  1. window -> preferences -> java -> installed jre's
  2. edit jre being used
  3. edit 'default vm arguments' line

    -xx:+useparallelgc

it didn't help.

instead of making changes in "standalone.conf", make change in "standalone.conf.bat" .

remove rem line "rem set "java_opts=%java_opts% -xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"" .

this has worked me.


Comments