User: jwalters Date: 01/06/27 07:44:49 Modified: src/docs Tag: Branch_2_2 howtonetbeansdebug.xml Log: Updated the command line to remove some extra switches and make the debugging command portable to all platforms. Added a bit more verbage as a result of some recent questions. Revision Changes Path No revision No revision 1.1.2.2 +11 -6 manual/src/docs/howtonetbeansdebug.xml Index: howtonetbeansdebug.xml =================================================================== RCS file: /cvsroot/jboss/manual/src/docs/howtonetbeansdebug.xml,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- howtonetbeansdebug.xml 2001/06/04 20:36:57 1.1.2.1 +++ howtonetbeansdebug.xml 2001/06/27 14:44:48 1.1.2.2 @@ -16,6 +16,9 @@ JBoss code. It is not the purpose of this howto to describe how to develop and debug the JBoss code. </para> +<para>Because Sun's Forte for Java and NetBeans share much of their source +code, this howto should be applicable to users in that environment as well. +</para> </section> <section> <title>Install the JBoss Server</title> @@ -111,14 +114,16 @@ <para><programlisting> java %JAXP% -classpath %JBOSS_CLASSPATH% org.jboss.Main ... </programlisting></para> -<para>to:</para> +<para>to: (as a single command line)</para> <para><programlisting> -java -classic -Dtomcat.home=%TOMCAT_HOME% -Xdebug -Xnoagent --Djava.compiler=NONE -classpath "%JBOSS_CLASSPATH%" --Xrunjdwp:transport=dt_socket,server=y,address=12999,suspend=n -org.jboss.Main %1 %2 %3 %4 %5 %6 %7 %8 %9 +java -Xint -Xdebug -Xnoagent -classpath "%JBOSS_CLASSPATH%" -Xrunjdwp:transport=dt_socket,server=y,address=12999,suspend=n org.jboss.Main %1 %2 %3 %4 %5 %6 %7 %8 %9 </programlisting></para> <para> +The -Xint switch disables hotspot optimizations. This is not strictly +necessary, but in my testing with the Win32 JDK 1.3 the JVM seemed more +stable with this switch enabled. +</para> +<para> You can of course substitute your favorite port for the 12999 in the example. </para> <para> @@ -155,7 +160,7 @@ <section> <title>Deploy the Beans</title> <para> -Copy of drag/drop (for windoze fans) the ejb jar file containing the +Copy or drag/drop (for windoze fans) the ejb jar file containing the ejb-jar.xml and jboss.xml (optional) to the deploy folder. If you have set breakpoints in stateless session ejb's these should cause the debugger to stop in your code! Hurrah! _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development
