how to load JBoss in an IntelliJ IDEA console and debug
I saw some posts a while back, people were asking how to do this. I thought I would share with everyone.
create a new Run/Debug Configuration
name: JBoss
main class: org.jboss.main
(it won't be on the selector, just type it in)
VM Parameters:
-classpath ";c:\java\jdk1.3.1_02\lib\tools.jar;c:\java\jboss-3.0.3\bin
run.jar"
(change the above to reflect your locations)
Working Directory:
C:\Java\jboss-3.0.3\bin
(once again, change the above to reflect your location)
save that, then click the debug icon up top.. your server should start in debug mode and spit output to the IDEA console. (very nice)
Now you can start your program in debug mode and server side debug. If you want to trace into any JBoss source code you will need to setup the JBoss source code in your program source path.
If you experience slow debug stepping, then make sure that you are running IDEA and your targets in the same JDK. Also be sure to click "Force classic VM" in the debugger options. This give you faster debugging. For this reason we still develop using 1.3 jdk, since IDEA 2.6 only runs in 1.3.
sean.
Please sign in to leave a comment.
IDEA and your targets in the same JDK. Also be sure to click "Force
>classic VM" in the debugger options. This give you faster debugging. For
this reason we still develop using 1.3 jdk, since IDEA 2.6 only runs in 1.3.
For faster stepping it is sufficient to run the debuggee under jdk 1.3 using
"classic" VM. Also some improvements to stepping speed under 1.4 hotspot VMs
were done in Ariadna.
--
Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"
"Sean Hager" <itnadmin@jetbrains.com> wrote in message
news:7186339.1034714703781.JavaMail.javamailuser@localhost...
thought I would share with everyone.
>
>
";c:\java\jdk1.3.1_02\lib\tools.jar;c:\java\jboss-3.0.3\bin
run.jar"
>
debug mode and spit output to the IDEA console. (very nice)
>
you want to trace into any JBoss source code you will need to setup the
JBoss source code in your program source path.
>
IDEA and your targets in the same JDK. Also be sure to click "Force classic
VM" in the debugger options. This give you faster debugging. For this
reason we still develop using 1.3 jdk, since IDEA 2.6 only runs in 1.3.
>
>
>