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.
- i compiled , deployed web project , deployed on jboss 7.1 clicking run on server -> jboss 7.1 in eclipse.
- i stopped jboss in eclipse.
i uncommented line
java_opts="$java_opts -xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
in $jboss_home/bin/standalone.conf
file
- i executed
$jboss_home/bin/standalone.sh
- i updated page localhost:8080/myproject/ in browser , worked
- i executed debug -> debug configurations in eclipse, created new configuration localhost host, 8787 port, , myproject project name.
- 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.
- window -> preferences -> java -> installed jre's
- edit jre being used
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
Post a Comment